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 the process of importing an issue model from a Cloud Storage bucket using a POST request to a specific endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter, indicating the resource location, and accepts a JSON request body to specify the import source and the action to perform regarding existing models.\u003c/p\u003e\n"],["\u003cp\u003eThe import process supports creating a new issue model or replacing an existing one, based on the \u003ccode\u003ecreateNewModel\u003c/code\u003e boolean field within the request body.\u003c/p\u003e\n"],["\u003cp\u003eThe request body utilizes a union field called \u003ccode\u003eSource\u003c/code\u003e, which can be filled with the details from the \u003ccode\u003eGcsSource\u003c/code\u003e object, allowing issue model data to come from Google Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return an \u003ccode\u003eOperation\u003c/code\u003e instance, and specific OAuth scopes and IAM permissions are required for authorization, including \u003ccode\u003econtactcenterinsights.issueModels.create\u003c/code\u003e and \u003ccode\u003econtactcenterinsights.issueModels.import\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}/v1alpha1/{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."]]