APIReference
Добавить соорганизатора
Personal tokens only. Grants the person organizer by hand on Account
Security, as the competition's Access tab does; a person who already
holds another role by hand has it replaced. Name the person by exactly
one of user_id, username or email.
Авторизация
apiToken АвторизацияBearer <token>
StackMoreLayers API token. Send as
Authorization: Bearer sml_pat_live_<prefix>.<secret>.
In: header
Параметры пути
competition_id*integer
Numeric competition identifier.
Range
1 <= valueЗаголовки
Idempotency-Key?string
Opaque client-generated key. A retry with the same key and body returns the original result instead of repeating the effect.
Match
^[!-~]+$Length
8 <= length <= 128Тело запроса
application/json
Типы TypeScript
Use the request body type in TypeScript.
Exactly one lookup field must be provided.
Properties
1 <= properties <= 1Ответ
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/competitions/1/organizers/" \ -H "Content-Type: application/json" \ -d '{}'{ "results": [ { "id": 0, "username": "string", "display_name": "string", "email": "user@example.com", "role": "collaborator" } ]}