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

Создать сабмит из зарегистрированного источника

POST
/competitions/{competition_id}/submissions/

Creates a submission from a stored file only: a file is scored from storage, so a request whose source_kind names anything else is refused with 400 stored_file_required. Send a local prediction file through the opaque submission upload workflow (submission-uploads/, its content, then complete/).

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

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

In: header

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

competition_id*integer

Numeric competition identifier.

Range1 <= value

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

page?integer

1-based page number.

Range1 <= value
Default1
page_size?integer

Items per page.

Range1 <= value <= 200
Default50
phase_id?integer

Restrict the result to a single phase of this competition.

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.

Ответ

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/competitions/1/submissions/" \  -H "Content-Type: application/json" \  -d '{    "phase_id": 1  }'
{  "submission_id": 0,  "status": "string",  "runner_job_id": "string",  "replayed": true}