Skip to main content
PATCH
/
device
/
{device_id}
Update Device By 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

Headers

x-api-version
string<date>
default:2024-03-26
Examples:

Path Parameters

device_id
string<uuid>
required

Body

application/json
registration
string | null
make
string | null
model
string | null
year
integer | null
active
boolean | null
tags
string[] | null
Maximum length: 10

Response

data
object
required