SETTO API
Referencia de la APITournaments

Publish a draft tournament and get its public link (needs the `manage` scope)

POST
/v1/external/tournaments/{idx}/publish

Takes a draft tournament live (status IN_PROGRESS) once the required steps are met: at least one category (has-division) and an end not before the start (valid-dates). Answers the status, the public link and the readiness check; readiness.warnings lists the setup steps still open, which never block. A tournament already public answers changed: false and writes nothing. No body. Recorded in «Actividad».

Authorization

apiToken
AuthorizationBearer <token>

API token (organization or personal)

In: header

Path Parameters

idx*string

Tournament identifier

Formatuuid

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/external/tournaments/497f6eca-6276-4993-bfeb-53cbbbba6f08/publish"
{  "status": "IN_PROGRESS",  "changed": true,  "publicUrl": "https://www.setto.io/t/copa-primavera-x7k2qa",  "readiness": {    "ready": true,    "required": [      {        "step": "has-division",        "done": true      }    ],    "warnings": [      {        "step": "add-a-venue"      }    ]  }}