---
title: "PATCH /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules/{autoLabelingRulesId}"
method: PATCH
path: "/v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules/{autoLabelingRulesId}"
tags: ["projects"]
---

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules/{autoLabelingRulesId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules/{autoLabelingRulesId}`

## Request

- Base URL: `https://contactcenterinsights.googleapis.com`
- URL: `https://contactcenterinsights.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/autoLabelingRules/{autoLabelingRulesId}`
- 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`

Updates an auto labeling rule.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `autoLabelingRulesId` string, required

## Query parameters

- `updateMask` string, google-fieldmask

## Request body

- GoogleCloudContactcenterinsightsV1AutoLabelingRule: Rule for auto-labeling conversations.
  - `active` boolean: Whether the rule is active.
  - `conditions` GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition[]: Conditions to apply for auto-labeling the label_key. Representing sequential block of if .. else if .. else statements. The value of the first matching condition will be used.
    - `condition` string: A optional CEL expression to be evaluated as a boolean value. Once evaluated as true, then we will proceed with the value evaluation. An empty condition will be auto evaluated as true.
    - `value` string: CEL expression to be evaluated as the value.
  - `createTime` string, google-datetime: Output only. The time at which this rule was created.
  - `description` string: The description of the rule.
  - `displayName` string: The user-provided display name of the rule.
  - `labelKey` string: The label key. This is also the {auto_labeling_rule} in the resource name. Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
  - `labelKeyType` 'LABEL_KEY_TYPE_UNSPECIFIED' | 'LABEL_KEY_TYPE_CUSTOM': The type of the label key.
  - `name` string: Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
  - `updateTime` string, google-datetime: Output only. The most recent time at which the rule was updated.

## Response `200`

Successful response

- GoogleCloudContactcenterinsightsV1AutoLabelingRule: Rule for auto-labeling conversations.
  - `active` boolean: Whether the rule is active.
  - `conditions` GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition[]: Conditions to apply for auto-labeling the label_key. Representing sequential block of if .. else if .. else statements. The value of the first matching condition will be used.
    - `condition` string: A optional CEL expression to be evaluated as a boolean value. Once evaluated as true, then we will proceed with the value evaluation. An empty condition will be auto evaluated as true.
    - `value` string: CEL expression to be evaluated as the value.
  - `createTime` string, google-datetime: Output only. The time at which this rule was created.
  - `description` string: The description of the rule.
  - `displayName` string: The user-provided display name of the rule.
  - `labelKey` string: The label key. This is also the {auto_labeling_rule} in the resource name. Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
  - `labelKeyType` 'LABEL_KEY_TYPE_UNSPECIFIED' | 'LABEL_KEY_TYPE_CUSTOM': The type of the label key.
  - `name` string: Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
  - `updateTime` string, google-datetime: Output only. The most recent time at which the rule was 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)
