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

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

POST
/models/uploads/

Creates an opaque upload session for direct multipart transfer to Object Storage. The API token is used only with StackMoreLayers API endpoints and MUST NOT be sent to signed part URLs.

Авторизация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/models/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}