Define a template file to use for given project.

POST /actions/projects/{project_id}/set-file-tree

Template files are located on the server side. Each template has a name which means that you just have to give a name to "select" the template to link with the project.

Path parameters

  • project_id string(uuid) Required
application/json

Body Required

  • tree_name string Required

Responses

  • 200 application/json

    Template file defined

    Hide response attributes Show response attributes object
    • success boolean
    • tree_name string
  • 400

    Selected tree not available

POST /actions/projects/{project_id}/set-file-tree
curl \
 --request POST 'http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/set-file-tree' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"tree_name":"default"}'
Request examples
{
  "tree_name": "default"
}
Response examples (200)
{
  "success": true,
  "tree_name": "default"
}