Create new entity output file
Create a new output file linked to a specific entity. Output files are created when artists are satisfied with their working files. They track the source working file and require output type and task type for categorization. An output type is required for better categorization (textures, caches, ...). A task type can be set too to give the department related to the output file. The revision is automatically set.
Body
Required
-
Output file name
-
Output file mode
Default value is
output. -
Output type identifier
-
Task type identifier
-
Person identifier
-
Source working file identifier
-
File status identifier
-
Output file comment
-
File extension
-
File representation
-
File revision number
-
Number of elements
Default value is
1. -
Path separator
Default value is
/.
POST
/data/entities/{entity_id}/output-files/new
curl \
--request POST 'http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/output-files/new' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"name":"main","mode":"output","output_type_id":"a24a6ea4-ce75-4665-a070-57453082c25","task_type_id":"a24a6ea4-ce75-4665-a070-57453082c25","person_id":"a24a6ea4-ce75-4665-a070-57453082c25","working_file_id":"a24a6ea4-ce75-4665-a070-57453082c25","file_status_id":"a24a6ea4-ce75-4665-a070-57453082c25","comment":"Final render","extension":".mp4","representation":"mp4","revision":1,"nb_elements":1,"sep":"/"}'
Request examples
{
"name": "main",
"mode": "output",
"output_type_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"task_type_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"person_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"working_file_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"file_status_id": "a24a6ea4-ce75-4665-a070-57453082c25",
"comment": "Final render",
"extension": ".mp4",
"representation": "mp4",
"revision": 1,
"nb_elements": 1,
"sep": "/"
}
Response examples (201)
{
"id": "b35b7fb5-df86-5776-b181-68564193d36",
"name": "main",
"path": "/project/asset/output/main_v001.mp4",
"revision": 1,
"entity_id": "c46c8gc6-eg97-6887-c292-79675204e47",
"created_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:30:00Z"
}