Начать загрузку локального файла для сабмита
The declared file is judged by the phase's own limits before any bytes
move: its scoring binding's byte limit (413,
submission_file_too_large, the limit named in message) and, when
submission_intake_type is declared, its format: a file of the
format's extension or a ZIP holding one such file (400,
submission_file_type_not_accepted). A phase whose scoring is not set
up takes no file (400, scoring_not_configured). The bytes are
checked again when the upload completes.
Авторизация
apiToken StackMoreLayers API token. Send as
Authorization: Bearer sml_pat_live_<prefix>.<secret>.
In: header
Параметры пути
Numeric competition identifier.
1 <= valueЗаголовки
Opaque client-generated key. A retry with the same key and body returns the original result instead of repeating the effect.
^[!-~]+$8 <= 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/submission-uploads/" \ -H "Content-Type: application/json" \ -d '{ "phase_id": 1, "file_name": "string", "file_size": 1 }'{ "upload_session_id": "stringstringstringstringstringst", "expires_in_seconds": 1, "max_bytes": 1}