POST
/
location
/
many
Create multiple locations
curl --request POST \
  --url http://localhost:8080/location/many \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "locations": [
    {
      "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 locations

The response is of type object[].