Method: projects.locations.issueModels.import

Imports an issue model from a Cloud Storage bucket.

HTTP request

POST https://contactcenterinsights.googleapis.com/v1alpha1/{parent=projects/*/locations/*}/issueModels:import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource of the issue model.

Request body

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.

Union field Source.

Source can be only one of the following:

gcsSource

object (GcsSource)

Google Cloud Storage source message.

Response body

If successful, the response body contains an instance of Operation.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

IAM Permissions

Requires the following IAM permissions on the parent resource:

  • contactcenterinsights.issueModels.create
  • contactcenterinsights.issueModels.import

For more information, see the IAM documentation.

GcsSource

Google Cloud Storage Object URI to get the issue model file from.

JSON representation
{
  "objectUri": string
}
Fields
objectUri

string

Required. Format: gs://<bucket-name>/<object-name>