Create Multiple Linked Access Codes
Create access codes across multiple devices that share a common code
Last updated
Was this helpful?
Create access codes across multiple devices that share a common code
Last updated
Was this helpful?
device_ids
type: string[]
ID of the Device
name
type: string Optional
Name of Access Codes
starts_at
type: string Optional
From when is the code valid
ends_at
type: string Optional
Code expiry
behavior_when_code_cannot_be_shared
type: enum
Optional, default throw
If throw
, no access codes will be created if any device cannot share a code. If create_random_code
, a random code will be created on devices that cannot share a code.
preferred_code_length
type: number Optional
Preferred code length If the affected devices do not support the preferred code length, Seam reverts to using the shortest supported code length.
code
type: string Optional
Code (PIN) to assign to each created access code.
If you specify a code
, Seam does not link the created access codes with a common_code_key
, so you cannot then update these access codes using /access_codes/update_multiple
. You can, however, update each access code individually using /access_codes/update
.
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.
throw
, create_random_code
No body