Skip to main content
PUT
Set a device custom field value
Key: Write Scope: Company

Authorizations

Authorization
string
header
required

Use your Primo API key in the Authorization header as Bearer <API_KEY>.

Path Parameters

deviceId
string
required
customFieldId
string
required

Body

application/json
value
required

Value to set. Must conform to the field type. Pass null to clear an existing value. For SELECT supply the option id (string). For MULTI_SELECT supply an array of option ids.

Response

default - application/json
field
object
required
value
required

Current stored value for this field on this device, or null when unset. For SELECT / MULTI_SELECT the value is the option id (or array of ids). For CHECKBOX it is a boolean. For DATE it is an ISO date string.