---
title: "PATCH /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}"
method: PATCH
path: "/v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}"
tags: ["properties"]
---

# PATCH /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}

`PATCH /v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}`

## Request

- Base URL: `https://analyticsadmin.googleapis.com`
- URL: `https://analyticsadmin.googleapis.com/v1beta/properties/{propertiesId}/customDimensions/{customDimensionsId}`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/analytics.edit`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/analytics.edit`

Updates a CustomDimension on a property.

## Path parameters

- `propertiesId` string, required
- `customDimensionsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `updateMask` string, google-fieldmask

## Request body

- GoogleAnalyticsAdminV1betaCustomDimension: A definition for a CustomDimension.
  - `description` string: Optional. Description for this custom dimension. Max length of 150 characters.
  - `disallowAdsPersonalization` boolean: Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.
  - `displayName` string: Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
  - `name` string: Identifier. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
  - `parameterName` string: Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
  - `scope` 'DIMENSION_SCOPE_UNSPECIFIED' | 'EVENT' | 'USER' | 'ITEM': Required. Immutable. The scope of this dimension.

## Response `200`

Successful response

- GoogleAnalyticsAdminV1betaCustomDimension: A definition for a CustomDimension.
  - `description` string: Optional. Description for this custom dimension. Max length of 150 characters.
  - `disallowAdsPersonalization` boolean: Optional. If set to true, sets this dimension as NPA and excludes it from ads personalization. This is currently only supported by user-scoped custom dimensions.
  - `displayName` string: Required. Display name for this custom dimension as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.
  - `name` string: Identifier. Resource name for this CustomDimension resource. Format: properties/{property}/customDimensions/{customDimension}
  - `parameterName` string: Required. Immutable. Tagging parameter name for this custom dimension. If this is a user-scoped dimension, then this is the user property name. If this is an event-scoped dimension, then this is the event parameter name. If this is an item-scoped dimension, then this is the parameter name found in the eCommerce items array. May only contain alphanumeric and underscore characters, starting with a letter. Max length of 24 characters for user-scoped dimensions, 40 characters for event-scoped dimensions.
  - `scope` 'DIMENSION_SCOPE_UNSPECIFIED' | 'EVENT' | 'USER' | 'ITEM': Required. Immutable. The scope of this dimension.

---

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