added

API - Add-device endpoint available

πŸš€ Feature Release

"Add device" endpoint is now available. This allows you to automate the process by calling the API instead of adding the devices manually in the dashboard.

This new endpoint requires the new access scope write:device. To use this, make sure your API client is configured with this scope in the dashboard, and use the scope accordingly in the token endpoint as described in the API documentation.

Use POST /location/{locationId}/devices?organizationId={{organization_id}} with the body:

{
    "serialNumber": "2930012345",
    "id": "QWERTYU",
    "name": "Office"
}

Note that while we are using the id property here as the id on the back of the device, id is not always used to describe this. For instance, on the GET endpoints the id might be used as the serial number.