PATCH
/
devices
/
{id}
curl --request PATCH \
  --url https://api.flatpeak.com/devices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reference_id": "DEV1234567890"
}'
{
  "id": "dev_63a6087272941ef077a8fd3e",
  "object": "device",
  "live_mode": true,
  "reference_id": "DEV1234567890",
  "last_seen": "2022-03-22T11:12:21Z",
  "time_created": "2022-01-24T14:15:22Z",
  "account_id": "acc_661677911f2197045e6cf1b1"
}

Authorizations

Authorization
string
header
required

Authenticate with bearer_token you obtained from /login endpoint.

Path Parameters

id
string
required

FlatPeak device_id.

Example:

"dev_6563a6757360a6d6a628e839"

Body

application/json

Updates a Device

The body is of type object.

Response

200
application/json

This object represents a device or another asset of a compatible type.