APIReference
Получить соревнования для управления
Авторизация
apiToken АвторизацияBearer <token>
StackMoreLayers API token. Send as
Authorization: Bearer sml_pat_live_<prefix>.<secret>.
In: header
Параметры запроса
page?integer
1-based page number.
Range
1 <= valueDefault
1page_size?integer
Items per page.
Range
1 <= value <= 200Default
50q?string
Case-insensitive title and metadata search.
Length
length <= 200visibility?string
Only return competitions with this visibility scope. Deliberately NOT
the catalog Visibility enum: a competition's scope has five values,
and reusing the three-value catalog one would silently match nothing
for organization, unlisted and host_only.
Value in
- "private"
- "organization"
- "unlisted"
- "host_only"
- "public"
Ответ
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/competitions/"{ "results": [ { "competition_mode": "scheduled", "id": 0, "title": "string", "slug": "string", "short_description": "string", "published": true, "competition_type": "string", "visibility_scope": "string", "created_when": "2019-08-24T14:15:22Z", "reward": "string", "contact_email": "string", "phase_count": 0 } ], "meta": { "page": 1, "page_size": 1, "total": 0 }}