Create new working file.
A working file is a file used to produce output files. It is the file the CG artist is working on. It is versioned, tied to a task and a software and requires a comment each time it is created. A path is generated for each file created. The path format is defined in the file tree template file.
POST
/data/tasks/{task_id}/working-files/new
curl \
--request POST 'http://api.example.com/data/tasks/a24a6ea4-ce75-4665-a070-57453082c25/working-files/new' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"main","mode":"working","description":"Main character model","comment":"Updated lighting and materials","person_id":"a24a6ea4-ce75-4665-a070-57453082c25","software_id":"a24a6ea4-ce75-4665-a070-57453082c25","revision":1,"sep":"/"}'
Request examples
{
"name": "main",
"mode": "working",
"description": "Main character model",
"comment": "Updated lighting and materials",
"person_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"software_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"revision": 1,
"sep": "/"
}
Response examples (201)
{
"id": "string",
"name": "string",
"path": "string",
"revision": 42,
"task_id": "string"
}