Skip to main content
POST
/
api
/
v1
/
workspaces
/
{workspace_id}
/
sync
/
upload-url
Get Sync Upload Url
curl --request POST \
  --url https://api.example.com/api/v1/workspaces/{workspace_id}/sync/upload-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bundle_type": "base_ref",
  "sha": "<string>",
  "checkpoint_id": "<string>"
}
'
{
  "upload_url": "<string>",
  "expires_at": "2023-11-07T05:31:56Z",
  "storage_key": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspace_id
string
required

Body

application/json

Request for a presigned upload URL (legacy).

bundle_type
enum<string>
required
Available options:
base_ref,
head_ref,
checkpoint
sha
string | null
checkpoint_id
string | null

Response

Successful Response

Response containing presigned upload URL (legacy).

upload_url
string
required
expires_at
string<date-time>
required
storage_key
string
required