# Bulk Upload

> API reference for uploading CSV data as records into a Data Service entity, with prerequisites, endpoint URL, and request parameters.

Uploads CSV data as records into a 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

![docs image](https://dev-assets.cms.uipath.com/assets/images/data-service/data-service-docs-image-43138-2a19635a-e2523966.webp)`BaseURL/EntityService/<Entity>/bulk-upload`

* **BaseURL:** `https://{yourDomain}/{organizationName}/{tenantName}/dataservice_`

## 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 “<columnName>” found.

### 401 Unauthorized

You are not authenticated to access 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.
