Skip to main content
POST
/
access_codes
/
report_device_constraints
await seam.accessCodes.reportDeviceConstraints({ device_id: "cd17e797-e952-47a1-ba47-46bf72934181", supported_code_lengths: [4, 5, 6], min_code_length: 42, max_code_length: 42, }); /* // void */
{
  "ok": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
device_id
string<uuid>
required

ID of the device for which you want to report constraints.

max_code_length
integer

Maximum supported code length as an integer between 4 and 20, inclusive. You can specify either min_code_length/max_code_length or supported_code_lengths.

Required range: 4 <= x <= 20
min_code_length
integer

Minimum supported code length as an integer between 4 and 20, inclusive. You can specify either min_code_length/max_code_length or supported_code_lengths.

Required range: 4 <= x <= 20
supported_code_lengths
integer[]

Array of supported code lengths as integers between 4 and 20, inclusive. You can specify either supported_code_lengths or min_code_length/max_code_length.

Minimum array length: 1
Required range: 4 <= x <= 20

Response

OK

ok
boolean
required