Body
Required
-
name
string Required Minimum length is
4
, maximum length is100
. -
description
string | null Required Maximum length is
150
. -
remarks
string | null Required Maximum length is
10000
. -
coordinates
string | null -
isEnabled
boolean Required -
circuit
object | null
POST
/api/locations
curl \
-X POST https://metropolitanabolivia.org/api/locations \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","remarks":"string","coordinates":"string","isEnabled":true,"circuit":{"id":"string"}}'
Request example
{
"name": "string",
"description": "string",
"remarks": "string",
"coordinates": "string",
"isEnabled": true,
"circuit": {
"id": "string"
}
}
Response examples (201)
{
"name": "string",
"description": "string",
"remarks": "string",
"coordinates": "string",
"isEnabled": true,
"id": "string",
"shiftsCount": 42,
"shifts": [
{
"startTime": "09:42:00+00:00",
"endTime": "09:42:00+00:00",
"dayOfWeek": 42,
"seatsCount": 42,
"isEnabled": true,
"id": "string"
}
],
"remarksSummary": "string",
"labels": [
{
"name": "string",
"bgColor": "string",
"id": "string"
}
],
"circuit": {
"name": "string",
"id": "string"
},
"createdAt": "2024-05-04T09:42:00+00:00",
"updatedAt": "2024-05-04T09:42:00+00:00"
}
Response examples (422)
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}