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

Проверить файл и создать сабмит

POST
/competitions/{competition_id}/submission-uploads/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

Заголовки

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
X-SML-Upload-Session*string

Opaque, API-token-bound resumable upload session. Treat it as a secret: do not log it or send it to Object Storage.

Length32 <= length <= 6144

Тело запроса

application/json

Типы TypeScript

Use the request body type in TypeScript.

Ответ

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/competitions/1/submission-uploads/complete/" \  -H "X-SML-Upload-Session: stringstringstringstringstringst" \  -H "Content-Type: application/json" \  -d '{}'
{  "submission_id": 0,  "status": "string",  "runner_job_id": "string",  "replayed": true}