Skip to main content
POST
/
v1
/
entities
/
{entityId}
/
locations
Create a Location for an Entity
curl --request POST \
  --url https://api.traxes.io/connect/v1/entities/{entityId}/locations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "label": "<string>",
  "latitude": 123,
  "longitude": 123
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "<string>",
  "latitude": 123,
  "longitude": 123
}

Authorizations

Authorization
string
header
required

Access Token Authentication

Path Parameters

entityId
string<uuid>
required

The id of the Entity

Body

application/json

A request to modify the location of an Entity

label
string | null

The label

latitude
number

The latitude

longitude
number

The longitude

Response

OK

The location of an Entity

id
string<uuid>
required

The Id

label
string | null
required

The label

latitude
number
required

The latitude

longitude
number
required

The longitude