Referencia de la APITournaments
Move a tournament back to draft, archive it or restore it (needs the `manage` scope)
unpublish («Borrador de torneo»): a public tournament back to draft. archive («Archivar»): off every public page. restore («Restaurar»): an archived tournament back to draft. A tournament already in that state answers changed: false and writes nothing. Tournaments are never deleted through the API. Recorded in «Actividad».
Authorization
apiToken AuthorizationBearer <token>
API token (organization or personal)
In: header
Path Parameters
idx*string
Tournament identifier
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
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/lifecycle" \ -H "Content-Type: application/json" \ -d '{ "action": "archive" }'{ "status": "ARCHIVED", "changed": true, "publicUrl": "https://www.setto.io/t/copa-primavera-x7k2qa"}