[[["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-27 UTC."],[[["\u003cp\u003eThis document describes how to import data into a specified conversation dataset using a long-running operation.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves sending a \u003ccode\u003ePOST\u003c/code\u003e HTTP request to a specified endpoint with a required dataset resource name, and requires specific IAM permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an \u003ccode\u003einputConfig\u003c/code\u003e object that defines the location of the data to be imported.\u003c/p\u003e\n"],["\u003cp\u003eA successful import returns an \u003ccode\u003eOperation\u003c/code\u003e instance, and the process requires specific OAuth scopes for authorization.\u003c/p\u003e\n"],["\u003cp\u003eThe path parameter \u003ccode\u003ename\u003c/code\u003e is required and has a specific format and requires \u003ccode\u003edialogflow.conversationDatasets.import\u003c/code\u003e authorization.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.conversationDatasets.importConversationData\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nImport data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it.\n\nThis method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:\n\n- `metadata`: [ImportConversationDataOperationMetadata](/dialogflow/es/docs/reference/rest/v2/ImportConversationDataOperationMetadata)\n- `response`: [ImportConversationDataOperationResponse](/dialogflow/es/docs/reference/rest/v2/ImportConversationDataOperationResponse)\n\n### HTTP request\n\n`POST https://{endpoint}/v2/{name=projects/*/locations/*/conversationDatasets/*}:importConversationData`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/es/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\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](/dialogflow/es/docs/reference/rest/v2/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]