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

Получить ссылки для загрузки частей модели

POST
/models/uploads/parts/

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.

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

Length32 <= 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/models/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    }  ]}