Create Location

POST {{baseUrl}}/v1/location

Create location

Body

FieldTypeRequiredDescription
namestringyesname of the location
coordinates{ lat: number, long: number }nothis 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
addressstringnothis field is mutually exclusive with field coordinates, only one can be in payload
customIdstringnounique id which might be used e.g. for referencing the device to other systems
descriptionstringnoany additional info about the location

Warning: Fields coordinates and address are mutually exclusive, but at least one of them must be in payload

HEADERS

KeyDatatypeRequiredDescription
x-authstringAuthorization key and token
Content-Typestring
Content-Typestring
Acceptstring

RESPONSES

status: OK

{}