Method: projects.locations.issueModels.import

Imports an issue model from a Cloud Storage bucket.

HTTP request

POST https://{endpoint}/v1/{parent=projects/*/locations/*}/issueModels:import

Where {endpoint} is one of the supported service endpoints.

The URLs use 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,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "gcsSource": {
    object (GcsSource)
  }
  // End of mutually exclusive fields.
}
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.

The source to import the issue model from. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
gcsSource

object (GcsSource)

Google Cloud Storage source message.

End of mutually exclusive fields.

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>