v1

latestOpenAPI 3.0.32026-07-22115106141.4 KB
Repository Manipulation

Download file tree snapshot

Get URL to file tree snapshot. Either one of workspace, branch or commit ID needs to be specified as ref ID. If the requested commit doesn't have a snapshot, the endpoint will return the nearest available ancestor snapshot along with the commit_id of that snapshot.

get/repos/{repo_id}/tree_snapshot/{ref_id}

Path parameters

repo_idstring required
Example:example_id

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

ref_idstring required
Example:example_id

An ID of a workspace, branch or commit.

Response

Pre-signed URL for downloading the tree snapshot stored in S3-compatible storage. The commit_id indicates which commit's snapshot is being returned - this may be an older ancestor commit if the requested commit doesn't have a snapshot available.

urlstring uri required

Pre-signed URL to download the file

commit_idstring required

Example response

{
  "commit_id": "example_id"
}