# Method: projects.locations.datasets.importData

- [HTTP request](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.PATH_PARAMETERS)
- [Request body](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.request_body)
  - [JSON representation](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.request_body.SCHEMA_REPRESENTATION)
- [Response body](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.response_body)
- [Authorization Scopes](https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.datasets/importData#body.aspect)

Imports data into a dataset. Returns an empty response in the `https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.operations#Operation.FIELDS.response` field when it completes.

### HTTP request

`POST https://automl.googleapis.com/v1beta1/{name}:importData`

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. Dataset name. Dataset must already exist. All imported annotations and examples will be added. Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission on the specified resource `name`: - `automl.datasets.import` <br /> |

### Request body

The request body contains data with the following structure:

| JSON representation ||
|---|---|
| ``` { "inputConfig": { object(`https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/InputConfig`) } } ``` |

| Fields ||
|---|---|
| `inputConfig` | ``object(`https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/InputConfig`)`` Required. The desired input location. |

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/translate/automl/docs/reference/rest/v1beta1/projects.locations.operations#Operation`.

### Authorization Scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).