Skip to main content
POST
/
events
/
{event}
/
checkpoints
Criar checkpoint
curl --request POST \
  --url http://localhost/api/v1/events/{event}/checkpoints \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "<string>",
  "name": "<string>",
  "latitude": 0,
  "longitude": 0,
  "altitude": 123,
  "description": "<string>",
  "physical_type": "<string>"
}
'
{
  "data": {
    "id": 123,
    "event_id": 123,
    "code": "<string>",
    "name": "<string>",
    "latitude": 123,
    "longitude": 123,
    "altitude": 123,
    "description": "<string>",
    "physical_type": "<string>",
    "status": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API key do hub com escopo manage. Header: Authorization: Bearer <api_key>.

Path Parameters

event
string
required

Body

application/json

POST /api/v1/events/{event}/checkpoints — ponto de controle do evento. Espelha EventView::saveCheckpoint + UpdateRaceConfigRequest (checkpoints.*). code é único por evento (validado no controller, que tem o contexto do evento).

code
string
required
Maximum string length: 10
name
string | null
Maximum string length: 80
latitude
number | null
Required range: -90 <= x <= 90
longitude
number | null
Required range: -180 <= x <= 180
altitude
number | null
description
string | null
Maximum string length: 255
physical_type
string | null
Maximum string length: 20
status
enum<string>

Status genérico usado por várias entidades (Hub, User, Group, Category, etc.). Entidades com estados específicos (Event, Registration) têm enums próprios.

Available options:
active,
inactive,
suspended

Response

JsonResource

data
CheckpointResource · object
required