Method: projects.datasets.importData

Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa.

HTTP request


The URL uses gRPC Transcoding syntax.

Path parameters



Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

Authorization requires the following Google IAM permission on the specified resource name:

  • datalabeling.datasets.import

Request body

The request body contains data with the following structure:

JSON representation
  "inputConfig": {
    object (InputConfig)
  "userEmailAddress": string

object (InputConfig)

Required. Specify the input source of the data.



Email of the user who started the import task and should be notified by email. If empty no notification will be sent.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:


For more information, see the Authentication Overview.