Device Assignments

Get all device assignments

SecurityOAuth2 or ApiKey
Responses
200

Response success

Response Schema: application/json
Array
AssignmentID
string <uuid>

Unique identifier for the device assignment.

DeviceID
string

A 6-byte MAC address associated to the assigned device.

AssignmentName
string

A friendly name associated with this device assignment.

401

Unauthorized access, invalid credentials were used.

get/devices/device-assignment
Request samples
Response samples
application/json
[
  • {
    }
]

Add a new device assignment

SecurityOAuth2 or ApiKey
Request
Request Body schema: application/json

Add a new device assignment

DeviceID
string

A 6-byte MAC address associated to the assigned device.

AssignmentName
string

A friendly name associated with this device assignment.

Responses
200

Response success

Response Schema: application/json
AssignmentID
string <uuid>

Unique identifier for the device assignment.

DeviceID
string

A 6-byte MAC address associated to the assigned device.

AssignmentName
string

A friendly name associated with this device assignment.

400

Malformed request.

401

Unauthorized access, invalid credentials were used.

403

Access forbidden. Current token does not have the necessary authority for the operation.

422

Invalid data was sent.

post/devices/device-assignment
Request samples
application/json
{
  • "DeviceID": "00:11:22:33:44:55",
  • "AssignmentName": "Worker 1"
}
Response samples
application/json
{
  • "AssignmentID": "c1c04bb1-e046-4b97-ac35-7a74bc8d1039",
  • "DeviceID": "00:11:22:33:44:55",
  • "AssignmentName": "Worker 1"
}

Update a device assignment

SecurityOAuth2 or ApiKey
Request
path Parameters
AssignmentID
required
string

ID of the device assignment

Request Body schema: application/json

Update a device assignment

DeviceID
string

A 6-byte MAC address associated to the assigned device.

AssignmentName
string

A friendly name associated with this device assignment.

Responses
200

Response success

Response Schema: application/json
status
integer [ 200 .. 202 ]

The HTTP status code.

success
boolean
400

Malformed request.

401

Unauthorized access, invalid credentials were used.

403

Access forbidden. Current token does not have the necessary authority for the operation.

404

Resource was not found.

422

Invalid data was sent.

put/devices/device-assignment/{AssignmentID}
Request samples
application/json
{
  • "DeviceID": "00:11:22:33:44:55",
  • "AssignmentName": "Worker 1"
}
Response samples
application/json
{
  • "status": 200,
  • "success": true
}

Delete a device assignment

SecurityOAuth2 or ApiKey
Request
path Parameters
AssignmentID
required
string

ID of the device assignment

Responses
200

Response success

Response Schema: application/json
status
integer [ 200 .. 202 ]

The HTTP status code.

success
boolean
401

Unauthorized access, invalid credentials were used.

403

Access forbidden. Current token does not have the necessary authority for the operation.

404

Resource was not found.

delete/devices/device-assignment/{AssignmentID}
Request samples
Response samples
application/json
{
  • "status": 200,
  • "success": true
}