Modifying Access Codes
Learn how to update your access codes, and ensure that the changes are successfully set on the device.
1. Update the access code using the API
await seam.accessCodes.update({
access_code_id: "11111111-1111-1111-1111-555555555555",
name: "my updated code name",
starts_at: "2025-02-01T16:00:00Z",
ends_at: "2025-02-22T12:00:00Z",
code: "5432"
})voidcurl -X 'POST' \
'https://connect.getseam.com/access_codes/update' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d '{
"access_code_id": "11111111-1111-1111-1111-555555555555",
"name": "my updated code name",
"code": "5432",
"starts_at": "2025-02-01T16:00:00Z",
"ends_at": "2025-02-22T12:00:00Z"
}'{
"ok": true
}2. Verify that the access code has been updated
For a permanent access code
For a time-bound access code
Special Case #1: Changing an ongoing access code to time-bound access
Special Case #2: Changing a time-bound access code to permanent access
Last updated
Was this helpful?

