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

Начать возобновляемую загрузку датасета

POST
/datasets/uploads/

Creates an opaque upload session for direct multipart transfer to Object Storage. This control-plane request uses the API token. Upload parts use only the short-lived signed URLs returned by the parts endpoint and MUST NOT include the API token.

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

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

In: header

Заголовки

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/datasets/uploads/" \  -H "Content-Type: application/json" \  -d '{    "filename": "string",    "file_size": 1,    "sha256": "string"  }'
{  "upload_session_id": "stringstringstringstringstringst",  "resource_kind": "dataset",  "filename": "string",  "file_size": 1,  "part_size": 5242880,  "part_count": 1,  "expires_in_seconds": 60}