Create sequences in a project from a CSV file. A line needs the name of the sequence and, in a TV show, its episode (the route creates the missing episodes). Outside a TV show, the Episode column must stay empty. A line can also give the description and the metadata of the sequence, and the status, a comment, and the assignees of its tasks. Assignees are added to the people a task already has. Send the CSV file in a multipart form. The route finds the separator of the file. Each line is imported in order. If a line is not valid, the import stops. Without update=true, the lines of the entities that exist are skipped. You must be a manager of the project.
POST
/import/csv/projects/{project_id}/sequences
curl \
--request POST '/api/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c250/sequences' \
--header "Authorization: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (201)
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c250",
"name": "SQ01",
"project_id": "b24a6ea4-ce75-4665-a070-57453082c250",
"parent_id": "c24a6ea4-ce75-4665-a070-57453082c250",
"description": "Sequence description"
}
]
Response examples (400)
{
"error": true,
"message": "string",
"line_number": 42,
"imported_rows": 42
}