Add a device to a location

Add a new device to a location. The serialNumber and id can be found on the back of the device. Note that the id in this context is not the serialNumber, as it can be when requesting resources in other Airthings APIs. To use this endpoint, make sure your API client has the write:device scope enabled in the dashboard and that the write:device scope is added to your access token when requesting a token from the token endpoint.

Path Params
uuid
required
Query Params
uuid
deprecated

Use accountId

uuid
deprecated

Use accountId

uuid
required
Body Params

AddDeviceRequest

string
required
string
required
string
required
length between 10 and 10
Responses

Language
Credentials
OAuth2
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json