APIReference
Получить ссылки для загрузки частей датасета
Returns at most 32 short-lived PUT targets. Send each part with the exact declared Content-Length, without Authorization, and do not follow redirects. Request fresh targets when a URL expires.
Авторизация
apiToken АвторизацияBearer <token>
StackMoreLayers API token. Send as
Authorization: Bearer sml_pat_live_<prefix>.<secret>.
In: header
Заголовки
X-SML-Upload-Session*string
Opaque, API-token-bound resumable upload session. Treat it as a secret: do not log it or send it to Object Storage.
Length
32 <= length <= 6144Тело запроса
application/json
Типы TypeScript
Use the request body type in TypeScript.
Ответ
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/datasets/uploads/parts/" \ -H "X-SML-Upload-Session: stringstringstringstringstringst" \ -H "Content-Type: application/json" \ -d '{ "part_numbers": [ 1 ] }'{ "parts": [ { "part_number": 1, "size_bytes": 1, "method": "PUT", "url": "http://example.com", "headers": { "property1": "string", "property2": "string" }, "expires_in_seconds": 1 } ]}