Skip to content

Update a device​

PUT
/devices/{device_id}

Authorizations​

bearerToken|siteContext
bearerToken

Personal access token tied to a user account. Requires the X-Nimbu-Site header to scope requests.

TypeHTTP (bearer)
+
siteContext

Identifier of the site context when authenticating with a personal access token.

TypeAPI Key (header: X-Nimbu-Site)
or
siteToken

Site-scoped API token that already encodes the site context.

TypeHTTP (bearer)

Parameters​

Header Parameters

X-Nimbu-Site*

Site identifier

Typestring
Required
Authorization*

Bearer access token

Typestring
Required

Path Parameters

device_id*

Device identifier

Typestring
Required

Request Body​

application/json
JSON
{
"token": "string",
"type": "string",
"installation_id": "string",
"app_version": "string",
"app_name": "string",
"badge": 0,
"channels": [
"string"
],
"tags": [
"string"
]
}

Responses​

device updated

application/json
JSON
{
"id": "string",
"token": "string",
"type": "string",
"created_at": "string",
"updated_at": "string",
"installation_id": "string",
"app_version": "string",
"app_name": "string",
"app_id": "string",
"sdk_version": "string",
"time_zone": "string",
"badge": 0,
"channel_uris": [
"string"
],
"channels": [
"string"
],
"tags": [
"string"
],
"customer": "string"
}

Playground​

Authorization
Headers
Variables
Key
Value
Body

Samples​