---
title: "POST /v1/{+parent}/issueModels"
method: POST
path: "/v1/{+parent}/issueModels"
tags: ["projects"]
---

# POST /v1/{+parent}/issueModels

`POST /v1/{+parent}/issueModels`

Creates an issue model.

## Path parameters

- `parent` string, required

## Request body

- GoogleCloudContactcenterinsightsV1IssueModel — The issue model resource.
  - `trainingStats` GoogleCloudContactcenterinsightsV1IssueModelLabelStats — Aggregated statistics about an issue model.
    - `unclassifiedConversationsCount` string, int64 — Number of analyzed conversations for which no issue was applicable at this point in time.
    - `issueStats` object — Statistics on each issue. Key is the issue's resource name.
    - `analyzedConversationsCount` string, int64 — Number of conversations the issue model has analyzed at this point in time.
  - `state` 'STATE_UNSPECIFIED' | 'UNDEPLOYED' | 'DEPLOYING' | 'DEPLOYED' | 'UNDEPLOYING' | 'DELETING' — Output only. State of the model.
  - `languageCode` string — Language of the model.
  - `createTime` string, google-datetime — Output only. The time at which this issue model was created.
  - `updateTime` string, google-datetime — Output only. The most recent time at which the issue model was updated.
  - `issueCount` string, int64 — Output only. Number of issues in this issue model.
  - `inputDataConfig` GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig — Configs for the input data used to create the issue model.
    - `medium` 'MEDIUM_UNSPECIFIED' | 'PHONE_CALL' | 'CHAT' — Medium of conversations used in training data. This field is being deprecated. To specify the medium to be used in training a new issue model, set the `medium` field on `filter`.
    - `trainingConversationsCount` string, int64 — Output only. Number of conversations used in training. Output only.
    - `filter` string — A filter to reduce the conversations used for training the model to a specific subset. Refer to https://cloud.google.com/contact-center/insights/docs/filtering for details.
  - `displayName` string — The representative name for the issue model.
  - `name` string — Immutable. The resource name of the issue model. Format: projects/{project}/locations/{location}/issueModels/{issue_model}
  - `modelType` 'MODEL_TYPE_UNSPECIFIED' | 'TYPE_V1' | 'TYPE_V2' — Type of the model.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/contactcenterinsights.md) · [All operations](https://skmtc.net/google/apis/contactcenterinsights/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/contactcenterinsights/versions/e071ddf4dfc3/schema)
