---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/assessments/{assessmentsId}:publish"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/assessments/{assessmentsId}:publish"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/assessments/{assessmentsId}:publish

`POST /v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/assessments/{assessmentsId}:publish`

## Request

- Base URL: `https://contactcenterinsights.googleapis.com`
- URL: `https://contactcenterinsights.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/conversations/{conversationsId}/assessments/{assessmentsId}:publish`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Publish an Assessment.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `conversationsId` string, required
- `assessmentsId` string, required

## Request body

- GoogleCloudContactcenterinsightsV1PublishAssessmentRequest: The message to publish an assessment. Draft and appealed assessments can be published. Publishing simply changes the state of the assessment to published, allowing the console and authorized views to filter on the state.

## Response `200`

Successful response

- GoogleCloudContactcenterinsightsV1Assessment: The assessment resource.
  - `agentInfo` GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo: Information about an agent involved in the conversation.
    - `agentId` string: A user-specified string representing the agent.
    - `agentType` 'ROLE_UNSPECIFIED' | 'HUMAN_AGENT' | 'AUTOMATED_AGENT' | 'END_USER' | 'ANY_AGENT': The agent type, e.g. HUMAN_AGENT.
    - `deploymentDisplayName` string: The agent's deployment display name. Only applicable to automated agents.
    - `deploymentId` string: The agent's deployment ID. Only applicable to automated agents.
    - `displayName` string: The agent's name.
    - `dispositionCode` string: A user-provided string indicating the outcome of the agent's segment of the call.
    - `entrySubagentDisplayName` string: The entry subagent's display name.
    - `entrySubagentId` string: The entry subagent's ID.
    - `location` string: The agent's location.
    - `studyArmId` string: The study arm ID associated with the conversation. Only applicable to automated agents.
    - `studyId` string: The study ID associated with the conversation. Only applicable to automated agents.
    - `team` string: A user-specified string representing the agent's team. Deprecated in favor of the `teams` field.
    - `teams` string[]: User-specified strings representing the agent's teams.
    - `versionDisplayName` string: The agent's version display name. Only applicable to automated agents.
    - `versionId` string: The agent's version ID. Only applicable to automated agents.
  - `createTime` string, google-datetime: Output only. The time at which the assessment was created.
  - `name` string: Identifier. The resource name of the assessment. Format: projects/{project}/locations/{location}/conversations/{conversation}/assessments/{assessment}
  - `state` 'STATE_UNSPECIFIED' | 'DRAFT' | 'PUBLISHED' | 'APPEALED' | 'FINALIZED': Output only. The state of the assessment.
  - `updateTime` string, google-datetime: Output only. The time at which the assessment was last updated.

---

[API](https://skmtc.dev/google/apis/contactcenterinsights.md) - [All operations](https://skmtc.dev/google/apis/contactcenterinsights/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/contactcenterinsights/revisions/895c3ce55ea0?raw)
