Get restrictions for a device
GET/api/v2/device/:deviceId/restrictions
Returns all restrictions that apply to the given device ID, as synced from the main server. Returns an empty array when no restrictions are configured for the device.
Request
Path Parameters
deviceId stringrequired
The unique identifier of the device
Responses
- 200
- 500
Restrictions for the device
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
createdAt stringrequired
description stringnullable
id stringrequired
isActive booleanrequired
name stringrequired
rule required
type stringrequired
updatedAt stringrequired
version int32required
[
{
"createdAt": "string",
"description": "string",
"id": "string",
"isActive": true,
"name": "string",
"rule": {},
"type": "string",
"updatedAt": "string",
"version": 0
}
]
Internal server error
Loading...