Skip to main content

List a project revision's file tree

GET 

/api/v1/projects/:project_id/source-tree

Flat file tree for a project's source, for the scope picker.

Serves VCS and archive projects uniformly off the revision's persisted file index (source_files_json) — no object storage download. ref resolves a named ref or an explicit revision id; absent, the project head is used. Returns an empty tree when the project has no revision yet.

  • Scope required: projects:read.

Request

Responses

Successful Response