Method: properties.customDimensions.patch
Обновляет CustomDimension свойства.
HTTP-запрос
PATCH https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}
URL-адрес использует синтаксис транскодирования gRPC .
Параметры пути
Параметры |
---|
custom Dimension. name | string Только вывод. Имя ресурса для этого ресурса CustomDimension. Формат: свойства/{свойство}/customDimensions/{customDimension} |
Параметры запроса
Параметры |
---|
update Mask | string ( FieldMask format) Необходимый. Список полей, которые необходимо обновить. Пропущенные поля не будут обновлены. Чтобы заменить всю сущность, используйте один путь со строкой «*», чтобы соответствовать всем полям. Это разделенный запятыми список полных имен полей. Пример: "user.displayName,photo" . |
Тело запроса
Тело запроса содержит экземпляр CustomDimension
.
Тело ответа
В случае успеха тело ответа содержит экземпляр CustomDimension
.
Области авторизации
Требуется следующая область действия OAuth:
-
https://www.googleapis.com/auth/analytics.edit
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-14 UTC.
[null,null,["Последнее обновление: 2025-01-14 UTC."],[[["Updates a specified CustomDimension on a Google Analytics 4 property using an HTTP PATCH request."],["The request should target a URL containing the property and CustomDimension identifiers, using gRPC Transcoding syntax."],["Users must provide an `updateMask` query parameter to specify the fields to update within the CustomDimension."],["The request body must contain a CustomDimension object with the desired changes and the response will contain the updated CustomDimension."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document details updating a CustomDimension on a property using a PATCH request. The endpoint is `https://analyticsadmin.googleapis.com/v1alpha/{customDimension.name=properties/*/customDimensions/*}`. Required parameters include the `customDimension.name` path parameter and the `updateMask` query parameter, which specifies fields to be updated. The request body contains a CustomDimension instance, and the successful response returns an updated CustomDimension instance. The process requires `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]