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

Загрузить файл оформления соревнования

POST
/competitions/{competition_id}/assets/{asset_kind}/
АвторизацияBearer <token>

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

In: header

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

competition_id*integer

Numeric competition identifier.

Range1 <= value
asset_kind*string

Competition presentation or starter asset kind.

Value in

  • "cover_image"
  • "logo"
  • "host_organization_logo"
  • "baseline_notebook"
  • "sample_submission"
  • "baseline_submission"

Заголовки

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

Тело запроса

multipart/form-data

Типы TypeScript

Use the request body type in TypeScript.

Ответ

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/competitions/1/assets/cover_image/" \  -F file="string"
{}