Create episodes in a TV show from a CSV file. A line needs the name of the episode. It can also give its description, its status (running, complete, standby, or canceled, in any case; running when the cell is empty on a new episode), its metadata, 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}/episodes
curl \
--request POST '/api/import/csv/projects/a24a6ea4-ce75-4665-a070-57453082c250/episodes' \
--header "Authorization: $API_KEY" \
--header "Content-Type: multipart/form-data" \
--form "file=@file"
Response examples (201)
[
{
"id": "a24a6ea4-ce75-4665-a070-57453082c250",
"name": "E01",
"project_id": "b24a6ea4-ce75-4665-a070-57453082c250",
"status": "running",
"description": "Episode description"
}
]
Response examples (400)
{
"error": true,
"message": "string",
"line_number": 42,
"imported_rows": 42
}