The request body contains data with the following structure:
JSON representation
{"createNewModel": boolean,// Union field Source can be only one of the following:"gcsSource": {object (GcsSource)}// End of list of possible types for union field Source.}
Fields
createNewModel
boolean
Optional. If set to true, will create an issue model from the imported file with randomly generated IDs for the issue model and corresponding issues. Otherwise, replaces an existing model with the same ID as the file.
[[["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-07-30 UTC."],[[["\u003cp\u003eThis webpage details how to import an issue model from a Cloud Storage bucket using a \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the \u003ccode\u003eparent\u003c/code\u003e resource as a path parameter and includes an optional boolean field \u003ccode\u003ecreateNewModel\u003c/code\u003e in the request body to determine whether to create a new model or replace an existing one.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can use a union field called \u003ccode\u003eSource\u003c/code\u003e, where it can define a \u003ccode\u003egcsSource\u003c/code\u003e by using the \u003ccode\u003eGcsSource\u003c/code\u003e object to retrieve the model file from a Google Cloud Storage bucket using a URI.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an \u003ccode\u003eOperation\u003c/code\u003e object, and the operation requires specific OAuth scopes and IAM permissions, including \u003ccode\u003econtactcenterinsights.issueModels.create\u003c/code\u003e and \u003ccode\u003econtactcenterinsights.issueModels.import\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe GcsSource parameter requires a \u003ccode\u003eobjectUri\u003c/code\u003e string parameter which should be formatted like: \u003ccode\u003egs://<bucket-name>/<object-name>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.issueModels.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- [IAM Permissions](#body.aspect_1)\n- [GcsSource](#GcsSource)\n - [JSON representation](#GcsSource.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nImports an issue model from a Cloud Storage bucket.\n\n### HTTP request\n\n`POST https://{endpoint}/v1/{parent=projects/*/locations/*}/issueModels:import`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/contact-center/insights/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](/contact-center/insights/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).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permissions on the `parent` resource:\n\n- `contactcenterinsights.issueModels.create`\n- `contactcenterinsights.issueModels.import`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs).\n\nGcsSource\n---------\n\nGoogle Cloud Storage Object URI to get the issue model file from."]]