Device service variable

Get all service variables for a device by UUID

get

Device service variable Resource Fields

Field

id

created_at

service_install

value

name


GET /v7/device_service_environment_variable

Usage Variations


Get all service variables for a device by UUID, including the service name

GET /v7/device_service_environment_variable?$filter=service_install/any(si:si/device/any(d:d/uuid eq '<DEVICE_UUID>'))&$expand=service_install($expand=installs__service($select=id,service_name))


Get all service variables for a device by ID

GET /v7/device_service_environment_variable?$filter=service_install/device eq <DEVICE ID>

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
get
/v7/device_service_environment_variable

Create a device service variable

post

POST /v7/device_service_environment_variable

Request Body:

{
    "service_install": <SERVICE INSTALL ID>,
    "name": <NAME>,
    "value": <VALUE>
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
objectOptional
post
/v7/device_service_environment_variable

Remove a device service variable

delete

DELETE /v7/device_service_environment_variable(<ID>)

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
IDanyRequired
delete
/v7/device_service_environment_variable({ID})

Update a device service variable

patch

PATCH /v7/device_service_environment_variable(<ID>)

Request Body:

{
    "value": <NEW VALUE>
}
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
IDanyRequired
Body
objectOptional
patch
/v7/device_service_environment_variable({ID})

Last updated

Was this helpful?