Skip to main content
POST
/
api
/
v1
/
workspaces
/
{workspace_id}
/
sync
/
base-ref-upload-url
Get Base Ref Upload Url
curl --request POST \
  --url https://api.example.com/api/v1/workspaces/{workspace_id}/sync/base-ref-upload-url \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sha": "<string>"
}
'
{
  "upload_url": "<string>",
  "storage_key": "<string>",
  "already_exists": true
}

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 for base ref bundle.

sha
string
required

Response

Successful Response

Response containing presigned upload URL for base ref.

upload_url is null if the bundle already exists (deduplicated).

upload_url
string | null
required
storage_key
string
required
already_exists
boolean
required