POST /devices/{serial_number}/install

Install a device at a location

This endpoint allows you to associate a specific DTM device with a designated location.

Install a device at a location

post

Install a device at a location

Authorizations
Path parameters
serial_numberstringRequired

serial_number

Body
location_idstringRequiredExample: loc_xxxxx
Responses
200
Successful operation
application/json
post
POST /dtm-api/v1/devices/{serial_number}/install HTTP/1.1
Host: api.getdor.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "location_id": "loc_xxxxx"
}
{
  "data": {
    "created_at": "2021-10-10T00:00:00Z",
    "deleted_at": "2021-10-10T00:00:00Z",
    "device": {
      "serial_number": "AA000000",
      "device_type_name": "DTM",
      "firmware_version_name": "1.0.0",
      "last_checkin_at": "2021-10-10T00:00:00Z"
    },
    "location": {
      "name": "AA000000",
      "id": "loc_xxxxx",
      "address": {
        "address_1": "1234 Demo Street",
        "address_2": "text",
        "city": "San Francisco",
        "administrative_area": "CA",
        "country": "United States",
        "postal_code": 94110
      }
    }
  },
  "meta": {}
}

Last updated