Generate a working file path from file tree template.

POST /data/tasks/{task_id}/working-file-path

Generate file path based on several parameters: task, software, mode, revision and separator. Revision can be computed automatically as next revision if not given.

Path parameters

Body

Name, software, mode, revision and separator.

Responses

  • 200

    Working file path generated

  • 400

    Malformed file tree

POST /data/tasks/{task_id}/working-file-path
curl \
 -X POST http://localhost:8080/api/data/tasks/{task_id}/working-file-path \
 -H "Authorization: $API_KEY" \
 -d '{"name":"main","mode":"working","software_id":"a24a6ea4-ce75-4665-a070-57453082c25","comment":"string","revision":42,"separator":"/"}'
Request example
{
  "name": "main",
  "mode": "working",
  "software_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "comment": "string",
  "revision": 42,
  "separator": "/"
}