Create Location
POST {{baseUrl}}/v1/location
Create location
Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | name of the location |
coordinates | { lat: number, long: number } | no | this field is mutually exclusive with field address, only one can be in payload. Range from -90 to 90 for latitude and -180 to 180 for longitude |
address | string | no | this field is mutually exclusive with field coordinates, only one can be in payload |
customId | string | no | unique id which might be used e.g. for referencing the device to other systems |
description | string | no | any additional info about the location |
Warning: Fields
coordinatesandaddressare mutually exclusive, but at least one of them must be in payload
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
x-auth | string | Authorization key and token | |
Content-Type | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{}