Create Many Access Codes
Create access codes across multiple devices that share a common code
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
device_idsstring · uuid[]Required
behavior_when_code_cannot_be_sharedstring · enumOptionalDefault:
throwPossible values: namestringOptional
starts_atstringOptional
ends_atstringOptional
attempt_for_offline_devicebooleanOptionalDefault:
trueResponses
200
OK
No content
400
Bad Request
401
Unauthorized
post
/access_codes/create_multipleNo content
Code Example
await seam.accessCodes.createMultiple({
device_id: [
"a83690b2-2b70-409a-9a94-426699b84c97",
"7bfe1838-5e64-432c-adb6-34e971bda001"
],
preferred_code_length: 4
});
/*
[
{
code: '9913',
type: 'ongoing',
status: 'setting',
created_at: '2022-08-26T11:08:24.161Z',
access_code_id: 'e0e31756-9385-408b-89f8-9f5ea43f9adf',
device_id: 'a83690b2-2b70-409a-9a94-426699b84c97',
common_code_key: 'auto_set_by_create_multiple_996c8131-34a4-4d58-86c4-7820f2ccdefb',
},
{
code: '9913',
type: 'ongoing',
status: 'setting',
created_at: '2022-08-26T11:08:24.161Z',
access_code_id: 'f3a89135-1101-4197-b272-4b4c5ed092b5',
device_id: '7bfe1838-5e64-432c-adb6-34e971bda001',
common_code_key: 'auto_set_by_create_multiple_996c8131-34a4-4d58-86c4-7820f2ccdefb',
}
]
*/Parameters
Response
JSON format
Last updated
Was this helpful?

