APIReference
Начать возобновляемую загрузку модели
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.
Авторизация
apiToken Авторизация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
^[!-~]+$Length
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/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}