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

Получить участников соревнования

GET
/competitions/{competition_id}/participants/

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).

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

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

In: header

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

competition_id*integer

Numeric competition identifier.

Range1 <= value

Параметры запроса

status?string

Only the approved participants, or only the pending or denied requests.

Value in

  • "approved"
  • "pending"
  • "denied"
page?integer

1-based page number.

Range1 <= value
Default1
page_size?integer

Items per page.

Range1 <= value <= 200
Default50

Ответ

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}