# Bulk upload

> Uploads CSV data as records into a Data Fabric / Data Service entity.

Uploads CSV data as records into a Data Fabric / Data Service entity.

:::note
For details on the prerequisites for a CSV file, refer to [Importing data using a CSV file](https://docs.uipath.com/data-service/automation-cloud/latest/user-guide/managing-the-data-for-an-entity#importing-data-using-a-csv-file).
:::

## API endpoint

`POST` `BaseURL/EntityService/<Entity>/bulk-upload`

* Depending on the cloud platform you are using, use the associated [Base URL](https://docs.uipath.com/data-service/automation-cloud/latest/api-guide/base-url).

## Request headers

| Header | Value |
| --- | --- |
| **Authorization** | Bearer `<access_token>` |
| **Content-Type** | application/json |

:::note
Replace all the values between the angle brackets `<...>` with their corresponding use-case values.

The `<access_token>` is the one you received when you authorized the external application. It is available for 1 hour. After 1 hour, you need to generate a new one, or request a refresh token.
:::

## Request body

The file (csv).

## Responses

### 200 OK

`{"totalRecords":33,"insertedRecords":33}`

### 400 Failure

Bulk upload failed. Invalid column header “&lt;columnName&gt;” found.

### 401 Unauthorized

You are not authenticated to access Data Fabric / Data Service. Make sure your Assistant or Robot is connected to a modern folder in your account.

### 403 Forbidden

You don't have permission to access the entity, field, or record, or you are using an unsupported robot type. Please contact your administrator for the necessary permissions.
