DTM docs
HomeDor Traffic MinerMetagraphDTM AppMarketingAPI
API
API
  • Overview
  • Authentication
    • Basic Auth
    • Manually Creating Basic Auth Headers
  • Response Format
    • Successful Responses
    • Error Responses
  • Pagination
  • Datetimes
    • Datetime Formats
    • Datetimes Grouped by Local Time Zone
  • Rate Limiting
  • Syncing Data
    • Asynchronous Data
    • Querying by Update Timestamp
  • Data Validity
    • Validity
    • Completeness
  • Endpoints
    • Organizations
      • GET /organizations
      • GET /organizations/{org_id}
    • Locations
      • GET /locations
      • GET /locations/{location_id}
      • GET /locations/{location_id}/devices
      • POST /locations
      • DELETE /locations/{location_id}
    • Devices
      • GET /devices
      • GET /devices/{serial_number}
      • PUT /devices/{serial_number}
      • POST /devices/{serial_number}/install
      • POST /devices/{serial_number}/uninstall
      • GET /uninstalled-devices
    • Foot Traffic
      • GET /foot-traffic/locations
      • GET /foot-traffic/devices/{serial_number}
    • Schemas
      • Organization
      • Location
      • Address
      • Device
      • LocationMetric
      • Foot Traffic
Powered by GitBook
On this page
  1. Endpoints
  2. Devices

PUT /devices/{serial_number}

Update device info

PreviousGET /devices/{serial_number}NextPOST /devices/{serial_number}/install

Last updated 1 year ago

This endpoint updates the details of a specific device associated with the DTM account. By supplying the serial number of the targeted device, you can modify its attributes.

Update device

put

Update device

Authorizations
Path parameters
serial_numberstringRequired

serial_number

Body
update_interval_snumberOptionalExample: 3000
Responses
200
Successful operation
application/json
400
Invalid parameters
404
Device not found
put
PUT /dtm-api/v1/devices/{serial_number} HTTP/1.1
Host: api.getdor.com
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 26

{
  "update_interval_s": 3000
}
{
  "data": {
    "serial_number": "AA000000",
    "device_type_name": "DTM",
    "board_id": "05555ee6f77c888e",
    "firmware_version_name": "1.0.0",
    "last_checkin_at": "2021-10-10T00:00:00Z",
    "update_interval_s": 3000,
    "location": {
      "id": "loc_xxx",
      "name": "Mike's Bikes"
    }
  },
  "meta": {}
}