Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

For your own scripts and server-to-server integrations. Create a key in the app under Settings > Access > API keys and copy it then, because it is shown once. Send it as Authorization: Bearer <key>. The key acts as the member who made it, in the organization it was made in. A call needs the member's permission and one of the key's scopes, such as inventory:read or sales:write. A key with * has every scope.

Path Parameters

device
string
required

Body

application/json

Renames a device, or sets where it works and how long it may stay offline. One request does one of the two, because they ask for different permissions.

name
string

A new name, at most 80 characters. Send it alone.

Maximum string length: 80
Example:

"Dock phone"

location_id
string<uuid> | null

The location the device works at; null clears it. Leave it out to keep it.

Example:

"0199a0d0-0000-7000-8000-0000000000b1"

work_center_id
string<uuid> | null

The work center the device works at; null clears it. Leave it out to keep it.

Example:

"0199a0d0-0000-7000-8000-0000000000c1"

offline_grace_hours
integer | null

Hours this device may stay offline before it locks itself, from 8 to 720; null follows the organization's setting. Leave it out to keep it.

Required range: 8 <= x <= 720
Example:

24

Response

DeviceResource

data
DeviceResource · object
required