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

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

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

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

In: header

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

page?integer

1-based page number.

Range1 <= value
Default1
page_size?integer

Items per page.

Range1 <= value <= 200
Default50
q?string

Case-insensitive title and metadata search.

Lengthlength <= 200
visibility?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  }}