---
title: "PATCH /v1/{+name}"
method: PATCH
path: "/v1/{+name}"
tags: ["projects"]
---

# PATCH /v1/{+name}

`PATCH /v1/{+name}`

Updates an auto labeling rule.

## Path parameters

- `name` string, required

## Query parameters

- `updateMask` string
- `conversationAutoLabelingUpdateConfig.allowAutoLabelingUpdate` boolean
- `updateMask` string

## Request body

- GoogleCloudContactcenterinsightsV1AutoLabelingRule — Rule for auto-labeling conversations.
  - `labelKeyType` 'LABEL_KEY_TYPE_UNSPECIFIED' | 'LABEL_KEY_TYPE_CUSTOM' — The type of the label key.
  - `updateTime` string, google-datetime — Output only. The most recent time at which the rule was updated.
  - `createTime` string, google-datetime — Output only. The time at which this rule was created.
  - `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.
  - `active` boolean — Whether the rule is active.
  - `description` string — The description 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.
  - `name` string — Identifier. The resource name of the auto-labeling rule. Format: projects/{project}/locations/{location}/autoLabelingRules/{auto_labeling_rule}
  - `displayName` string — The user-provided display name of the rule.

## 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)
