POST /devices/{serial_number}/uninstall

Uninstall a device at a location

This endpoint allows the removal of a specific DTM device from a designated location.

Uninstall a device at a location

Uninstall a device at a location

POSThttps://api.getdor.com/dtm-api/v1/devices/{serial_number}/uninstall
Authorization
Path parameters
serial_number*string

serial_number

Body
location_id*string
Example: "loc_xxxxx"
uninstalled_atstring
Example: "2022-01-01T00:00:00Z"
Response

Successful operation

Body
dataStoreDevice (object)
metaobject
Request
const response = await fetch('https://api.getdor.com/dtm-api/v1/devices/{serial_number}/uninstall', {
    method: 'POST',
    headers: {
      "Authorization": "basic <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "location_id": "loc_xxxxx"
    }),
});
const data = await response.json();
Response
{
  "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
      }
    }
  }
}

Last updated