Assign Policy to Device

POST {{baseUrl}}/v1/device/:deviceUid/policy

Assign policy to device by deviceUid and policyUid.

Parameters

FieldTypeRequiredDescription
deviceUidstringRequiredUnique Device Identification

Body

FieldTypeRequiredDescription
uidstringRequiredUid of Policy to be assigned to the Device
prioritynumberRequiredPriority of the policy regarding the Device. Higher the number higher the priority. If multiple policies assigned conflicting policy item will be set by the Policy with higher priority.

HEADERS

KeyDatatypeRequiredDescription
x-authstringAuthorization key and token
Content-Typestring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}