Repository Manipulation
Get file tree snapshot for a nested tree path. Either one of workspace, branch or commit ID needs to be specified as ref ID.
GET
/
repos
/
{repo_id}
/
trees
/
{ref_id}
/
{path}
Authorizations
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Path Parameters
repo_id
string
requiredThe 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_id
string
requiredAn ID of a workspace, branch or commit.
path
string
requiredA path to a file inside the repository.
Query Parameters
recurse
boolean
default: trueSpecifies if to recursively iterate file tree to next directory levels
skip
integer
Skip a number of items returned from a listing api
limit
integer
Limit the number of entries returned from walk
offset
string
Offset item name in directory when iterating its entries (non-inclusive)
include_deleted
boolean
default: falseShould the tree contain also deleted items or omit them from response
workspace_journal_ordinal_id
integer
The ordinal ID of the journal entry the walk references, if applicable
dirs_only
boolean
default: falseReturn only directories in the file tree walk
Response
200 - application/json
object
enum<string>
requiredAvailable options:
FileEntry
items
object[]
requiredworkspace_journal_ordinal_id
integer
An ordinal ID of a workspace journal entry