StackMoreLayersДокументация
APIReference

Добавить соорганизатора

POST
/competitions/{competition_id}/organizers/

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.

АвторизацияBearer <token>

StackMoreLayers API token. Send as Authorization: Bearer sml_pat_live_<prefix>.<secret>.

In: header

Параметры пути

competition_id*integer

Numeric competition identifier.

Range1 <= 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^[!-~]+$
Length8 <= length <= 128

Тело запроса

application/json

Типы TypeScript

Use the request body type in TypeScript.

Exactly one lookup field must be provided.

Properties1 <= 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"    }  ]}