cURL
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>" }
Generate a presigned URL for uploading a sync bundle.
Bundle types:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request for a presigned upload URL (legacy).
base_ref
head_ref
checkpoint
Successful Response
Response containing presigned upload URL (legacy).