Method: properties.patch
Żądanie HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
property.name |
string
Tylko dane wyjściowe. Nazwa zasobu tej usługi. Format: „usługi/{identyfikator_usługi}” Przykład: „usługi/1000”
|
Parametry zapytania
Parametry |
updateMask |
string (FieldMask format)
Wymagane. Lista pól do zaktualizowania. Nazwy pól muszą być zapisane w alfabecie łamanym (np. „field_to_update”). Pominięte pola nie zostaną zaktualizowane. Aby zastąpić cały element, użyj jednej ścieżki z ciągiem znaków „*”, aby dopasować wszystkie pola. Jest to lista pełnych nazw pól rozdzielona przecinkami. Przykład: "user.displayName,photo" .
|
Treść żądania
Treść żądania zawiera wystąpienie elementu Property
.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu Property
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/analytics.edit
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-01-14 UTC.
[null,null,["Ostatnia aktualizacja: 2025-01-14 UTC."],[[["This method updates a specified Google Analytics 4 property using the provided parameters."],["It utilizes an HTTP PATCH request to the designated endpoint with property name as a path parameter."],["The request body should contain the updated Property object and a query parameter 'updateMask' specifying the fields to be updated."],["Successful execution results in a response body containing the updated Property object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines how to update a property using a PATCH request to `https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}`. The `property.name` path parameter specifies the target property, while the `updateMask` query parameter (using FieldMask format) dictates which fields to modify. The request body contains the updated `Property` details, and a successful response returns the updated `Property`. This operation requires the `analytics.edit` authorization scope.\n"]]