Update an Access Code
Update an Access Code for a Device by its ID
Update an Access Code
PUT https://connect.getseam.com/access_codes/update
Request Body
access_code_id*
String
Access code id
name
String
Access code name
code
String
Access code
starts_at
String
ends_at
String
{
"action_attempt": {
"status": "pending",
"action_type": "UPDATE_ACCESS_CODE",
"action_attempt_id": "bbb8a07d-a91d-4564-b002-8172f7cdadc4",
"result": null,
"error": null
},
"ok": true
}{
"error": {
"type": "invalid_input",
"message": "Required for provided \"access_code_id\"",
"validation_errors": {
"_errors": [],
"access_code_id": {
"_errors": [
"Required"
]
}
},
"request_id": "ec56770c-b45e-4faa-9614-d987d793d684"
},
"ok": false
}Code Example
Parameters
access_code_id
type:string
ID of the Access Code
device_id
type: string Optional
ID of the Device
name
type: string Optional
Name of Access Code
starts_at
type: string Optional
From when is the code valid
ends_at
type: string Optional
Code expiry
code
type: string Optional
Access code of Device
Response
This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from whatβs written here.
JSON format
Last updated
Was this helpful?

