Skip to main content
POST
/
api
/
locations
Create a new location
curl --request POST \
  --url https://serengo.zias.be/api/locations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "latitude": 123,
  "longitude": 123,
  "locationName": "<string>"
}
'
{
  "id": "<string>",
  "latitude": 123,
  "longitude": 123,
  "name": "<string>",
  "averageRating": 123,
  "findCount": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
latitude
number
required
longitude
number
required
locationName
string

Response

200 - application/json

Location created

id
string
latitude
number
longitude
number
name
string | null
averageRating
number
findCount
integer