Skip to main content
POST
/
events
/
{event}
/
races
/
{race}
/
results
Importar resultados
curl --request POST \
  --url http://localhost/api/v1/events/{event}/races/{race}/results \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "results": [
    {
      "athlete": {
        "name": "<string>",
        "document": "<string>",
        "email": "jsmith@example.com",
        "birth_date": "2023-12-25"
      },
      "external_id": "<string>",
      "category": "<string>",
      "category_id": 123,
      "modality_id": 123,
      "modality": "<string>",
      "bib": "<string>",
      "net_time": "<string>",
      "gun_time": "<string>",
      "overall_position": 1,
      "category_position": 1,
      "gender_position": 1,
      "observation": "<string>"
    }
  ],
  "modality_id": 123,
  "modality": "<string>"
}
'
"<string>"

Authorizations

Authorization
string
header
required

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

Path Parameters

event
string
required
race
string
required

Body

application/json

Ingest de resultados via Management API — POST /api/v1/events/{event}/races/{race}/results.

Evento e prova vêm na URL (resolvidos por id|code no controller); o corpo é só a modalidade do lote + o array de resultados.

results
object[]
required
Required array length: 1 - 5000 elements
modality_id
integer | null

Modalidade do LOTE (id OU nome; id ganha). Vale pra todos os resultados, salvo override no item. Resolvida contra modalidades existentes — nunca cria.

modality
string | null
Maximum string length: 80

Response

The response is of type string.