---
title: "POST /v23/customers/{+customerId}/customerLabels:mutate"
method: POST
path: "/v23/customers/{+customerId}/customerLabels:mutate"
tags: ["customers"]
---

# POST /v23/customers/{+customerId}/customerLabels:mutate

`POST /v23/customers/{+customerId}/customerLabels:mutate`

Creates and removes customer-label relationships. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [DatabaseError]() [HeaderError]() [InternalError]() [LabelError]() [MutateError]() [QuotaError]() [RequestError]()

## Path parameters

- `customerId` string, required

## Request body

- GoogleAdsSearchads360V23ServicesMutateCustomerLabelsRequest — Request message for CustomerLabelService.MutateCustomerLabels.
  - `partialFailure` boolean — If true, successful operations will be carried out and invalid operations will return errors. If false, all operations will be carried out in one transaction if and only if they are all valid. Default is false.
  - `validateOnly` boolean — If true, the request is validated but not executed. Only errors are returned, not results.
  - `operations` GoogleAdsSearchads360V23ServicesCustomerLabelOperation[] — Required. The list of operations to perform on customer-label relationships.
    - `create` GoogleAdsSearchads360V23ResourcesCustomerLabel — Represents a relationship between a customer and a label. This customer may not have access to all the labels attached to it. Additional CustomerLabels may be returned by increasing permissions with login-customer-id.
      - `label` string — Output only. The resource name of the label assigned to the customer. Note: the Customer ID portion of the label resource name is not validated when creating a new CustomerLabel.
      - `resourceName` string — Immutable. Name of the resource. Customer label resource names have the form: `customers/{customer_id}/customerLabels/{label_id}`
      - `customer` string — Output only. The resource name of the customer to which the label is attached. Read only.
    - `remove` string — Remove operation: A resource name for the customer-label relationship being removed, in this format: `customers/{customer_id}/customerLabels/{label_id}`

## Response `200`

Successful response

---

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