Skip to main content
POST
/
api
/
tree
Get a file tree
curl --request POST \
  --url https://api.example.com/api/tree \
  --header 'Content-Type: application/json' \
  --data '
{
  "repoName": "<string>",
  "revisionName": "<string>",
  "paths": [
    "<string>"
  ]
}
'
{
  "tree": {
    "type": "<string>",
    "path": "<string>",
    "name": "<string>",
    "children": "<array>"
  }
}

Body

application/json
repoName
string
required
revisionName
string
required
paths
string[]
required

Response

File tree for the requested repository revision.

tree
object
required