Required. The dataset resource name. Format: projects/{project}/locations/{location}/processors/{processor}/dataset It takes the form projects/{project}/locations/{location}/processors/{processor}/dataset.
Request body
The request body contains data with the following structure:
Config for importing documents. Each batch can have its own dataset split type.
JSON representation
{"batchInputConfig": {object (BatchDocumentsInputConfig)},// Union field split_type_config can be only one of the following:"datasetSplit": enum (DatasetSplitType),"autoSplitConfig": {object (AutoSplitConfig)}// End of list of possible types for union field split_type_config.}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-10 UTC."],[[["\u003cp\u003eThis endpoint, \u003ccode\u003eprojects.locations.processors.dataset.importDocuments\u003c/code\u003e, is used to import documents into a specified dataset.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request for importing documents is a \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint using \u003ccode\u003ev1beta3\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an array of \u003ccode\u003ebatchDocumentsImportConfigs\u003c/code\u003e that specify the Cloud Storage URI of the documents to import.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003ebatchDocumentsImportConfig\u003c/code\u003e allows defining either a \u003ccode\u003edatasetSplit\u003c/code\u003e or \u003ccode\u003eautoSplitConfig\u003c/code\u003e to determine the target dataset split or an automatic split into training and test categories.\u003c/p\u003e\n"],["\u003cp\u003eUsing this endpoint requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and the IAM permission \u003ccode\u003edocumentai.datasets.createDocuments\u003c/code\u003e on the dataset resource.\u003c/p\u003e\n"]]],[],null,["# Method: dataset.importDocuments\n\n**Full name**: projects.locations.processors.dataset.importDocuments\n\nImport documents into a dataset.\n\n### HTTP request\n\n`POST https://{endpoint}/v1beta3/{dataset}:importDocuments`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/document-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/document-ai/docs/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `dataset` resource:\n\n- `documentai.datasets.createDocuments`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nBatchDocumentsImportConfig\n--------------------------\n\nConfig for importing documents. Each batch can have its own dataset split type.\n\nAutoSplitConfig\n---------------\n\nThe config for auto-split."]]