The request body contains data with the following structure:
JSON representation
{"errorConfig": {object (ImportErrorConfig)},// Union field source can be only one of the following:"inlineSource": {object (InlineSource)},"gcsSource": {object (GcsSource)},"bigquerySource": {object (BigQuerySource)}// End of list of possible types for union field source.}
[[["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 API endpoint imports \u003ccode\u003eCompletionSuggestion\u003c/code\u003e data for a specified DataStore using a \u003ccode\u003ePOST\u003c/code\u003e request to a URL that follows gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required, representing the resource name of the data store where suggestions will be imported, and following the pattern \u003ccode\u003eprojects/*/locations/*/collections/*/dataStores/*\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can accept the source of suggestions from multiple origins; \u003ccode\u003eInlineSource\u003c/code\u003e, \u003ccode\u003eGcsSource\u003c/code\u003e or \u003ccode\u003eBigQuerySource\u003c/code\u003e, with \u003ccode\u003eerrorConfig\u003c/code\u003e to handle any errors.\u003c/p\u003e\n"],["\u003cp\u003eThe response body returns an \u003ccode\u003eOperation\u003c/code\u003e instance if the import is successful.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope is required.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.dataStores.completionSuggestions.import\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\nImports [CompletionSuggestion](/generative-ai-app-builder/docs/reference/rest/v1/InlineSource#CompletionSuggestion)s for a DataStore.\n\n### HTTP request\n\n`POST https://discoveryengine.googleapis.com/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import`\n\nThe URL uses [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](/generative-ai-app-builder/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](/docs/authentication#authorization-gcp)."]]