Получить участников соревнования
The join requests first -- pending, then denied -- then the approved participants. The participants are the competition's participation records: a person who may participate only through a course, a group or a role given on the Access tab, and has not joined or submitted yet, has no record and is not listed. A person whose account carries no numeric user id is not listed either.
Personal tokens only for now: access is managed by a person, so a
competition automation token is refused (401 token_type_not_allowed).
Авторизация
apiToken StackMoreLayers API token. Send as
Authorization: Bearer sml_pat_live_<prefix>.<secret>.
In: header
Параметры пути
Numeric competition identifier.
1 <= valueПараметры запроса
Only the approved participants, or only the pending or denied requests.
Value in
- "approved"
- "pending"
- "denied"
1-based page number.
1 <= value1Items per page.
1 <= value <= 20050Ответ
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/competitions/1/participants/"{ "results": [ { "id": 0, "user_id": 0, "username": "string", "email": "user@example.com", "status": "approved", "reason": "string", "invite_link_public_id": "string", "invite_link_name": "string", "invite_cohort_name": "string" } ], "counts": { "approved": 0, "pending": 0, "denied": 0 }, "total": 0, "page": 1, "page_size": 1}