POST
/
location
Create location
curl --request POST \
  --url http://localhost:8080/location \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "name": "<string>",
  "code": "<string>",
  "street": "<string>",
  "city": "<string>",
  "country": "<string>",
  "zip_code": "<string>",
  "latitude": 123,
  "longitude": 123
}'
{
  "name": "<string>",
  "code": "<string>",
  "street": "<string>",
  "city": "<string>",
  "country": "<string>",
  "zip_code": "<string>",
  "latitude": 123,
  "longitude": 123
}

Authorizations

x-api-key
string
header
required

API key for authentication. Contact your administrator to get an API key.

Body

application/json

Response

Successfully created location

The response is of type object.