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

Body

application/json

Details for device

system_device_id
string
required
registration
string | null
required
make
string | null
required
model
string | null
required
year
integer | null
required
active
boolean
required
tags
string[] | null
required
connection_id
string
required

Response

200
application/json
Successful Response
data
object
required

Successful response payload