# Import a casting from a CSV file

**POST /import/csv/projects/{project_id}/casting**

Set the casting of the shots, the episodes or the assets of a project from a CSV file. A link that exists is updated. 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. You must be a manager of the project.


## Servers
- /api: /api ()


## Authentication methods
- Jwt authorization


## Parameters

### Path parameters

- **project_id** (string(uuid))
  Unique identifier of the project



### Body: multipart/form-data (object)

- **file** (string(binary))
  CSV file with casting link data



## Responses
### 201
One null value per imported line

#### Body: application/json (array[object | null])

### 400
A line of the file is not valid. The lines before this line are imported.

#### Body: application/json (object)
- **error** (boolean)

- **message** (string)

- **line_number** (integer)
  Number of the line that is not valid

- **imported_rows** (integer)
  Number of lines that are imported


### 403
You are not a manager of the project

### 404
The project does not exist


[Powered by Bump.sh](https://bump.sh)
