PATCH
/
device
/
{device_id}
curl --request PATCH \
  --url https://api.pathstack.io/device/{device_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "registration": "<string>",
  "make": "<string>",
  "model": "<string>",
  "year": 123,
  "active": true,
  "tags": [
    "<string>"
  ]
}'
{
  "data": {
    "system_device_id": "<string>",
    "registration": "<string>",
    "make": "<string>",
    "model": "<string>",
    "year": 123,
    "active": true,
    "tags": [
      "<string>"
    ],
    "id": "<string>",
    "connection_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string
default:2024-03-26
Example:

"2024-03-26"

Path Parameters

device_id
string
required

Device ID of the Device to be updated

Body

application/json
registration
string | null
make
string | null
model
string | null
year
integer | null
active
boolean | null
tags
string[] | null
            A maximum of 10 tags is allowed on a Device. Each tag must have a length between 1 and 255
            characters. Tags are stored in lower case, and duplicate tags are removed. Leading and trailing 
            whitespaces are removed.
            

Response

200
application/json
Successful Response
data
object
required

Successful response payload