Update Multiple Linked Access Codes
Update the starting and ending times for a set of linked access codes across multiple devices.
POST /access_codes/update β voidUpdates the starts_at and ends_at timestamps of a specified group of access codes linked by a common_code_key, across multiple devices. You create these groups of access codes using /access_codes/create_multiple, and all these codes have the same PIN code. See also Creating and Updating Multiple Linked Access Codes.
Request:
# Update the starting and ending times
# for a group of linked access codes,
# using the common_code_key to identify
# the group of access codes to update.
seam.access_codes.update_multiple(
common_code_key = common_code_key,
starts_at = "2024-11-15T12:00:00Z",
ends_at = "2024-11-17T15:00:00Z"
)Response:
NoneRequest:
# Update the starting and ending times
# for a group of linked access codes,
# using the common_code_key to identify
# the group of access codes to update.
curl -X 'POST' \
'https://connect.getseam.com/access_codes/update_multiple' \
-H 'accept: application/json' \
-H "Authorization: Bearer ${SEAM_API_KEY}" \
-H 'Content-Type: application/json' \
-d "{
\"common_code_key\": \"${common_code_key}\",
\"starts_at\": \"2024-11-15T12:00:00Z\",
\"ends_at\": \"2024-11-17T15:00:00Z\"
}"Response:
{
"ok": true
}Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Request:
Response:
Request Parameters
common_code_key
common_code_keyType: string Required: Yes
Key that links the group of access codes, assigned on creation by /access_codes/create_multiple.
starts_as
starts_asType: string Required: No
Date and time at which the validity of the linked access codes starts, in ISO 8601 format.
ends_at
ends_atType: string Required: No
Date and time at which the validity of the linked access codes ends, in ISO 8601 format. Must be a time in the future and after starts_at.
Return Type
void
Last updated
Was this helpful?

