Skip to main content
POST
/
filesystem-multipart
/
initiate
/
{path}
Initiate multipart upload
curl --request POST \
  --url https://run.blaxel.ai/{workspace_id}/sandboxes/{sandbox_id}/filesystem-multipart/initiate/{path} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "permissions": "0644"
}'
{
  "path": "/tmp/largefile.dat",
  "uploadId": "550e8400-e29b-41d4-a716-446655440000"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

File path

Body

application/json

Optional permissions

permissions
string
Example:

"0644"

Response

Upload session created

path
string
Example:

"/tmp/largefile.dat"

uploadId
string
Example:

"550e8400-e29b-41d4-a716-446655440000"