Hi Raoni,
You can use the PUT /smartlock/auth to update the code access times
{“name”: “Test”, “type”: 13, “code”: 999999, “allowedFromDate”: “2020-03-19T16:00:00.000Z”, “allowedUntilDate”: “2020-03-20T16:00:00.000Z”,“allowedWeekDays”: 0}
You can take a look at this thread here for more details
Let me know if this helps.