Method: accounts.patch
HTTP isteği
PATCH https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
account.name |
string
Yalnızca çıkış. Bu hesabın kaynak adı. Biçim: accounts/{hesap} Örnek: "accounts/100"
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Zorunlu. Güncellenecek alanların listesi. Alan adları küçük harflerle yazılmalıdır (örneğin, "field_to_update"). Atlanan alanlar güncellenmez. Öğenin tamamını değiştirmek için tüm alanları eşleştirmek üzere "*" dizesiyle bir yol kullanın. Bu, alanların tam nitelikli adlarının virgülle ayrılmış bir listesidir. Örnek: "user.displayName,photo" .
|
İstek içeriği
İstek metni, Account
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Account
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/analytics.edit
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-01-14 UTC.
[null,null,["Son güncelleme tarihi: 2025-01-14 UTC."],[[["This endpoint updates an existing Google Analytics 4 account with specified changes."],["The request must include the account name in the URL path and an update mask in the query parameters defining the fields to be modified."],["You should provide the updated account details in the request body, formatted according to the `Account` object specification."],["Successful execution results in a response containing the updated `Account` object, reflecting the applied changes."],["Authorization necessitates the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for access and modification permissions."]]],["This outlines the process for updating an account via a PATCH request to `https://analyticsadmin.googleapis.com/v1beta/{account.name=accounts/*}`. The account's name is specified in the URL path. A `updateMask` query parameter, formatted as a FieldMask, defines which fields to update. The request body and response body use the `Account` object. The process needs `https://www.googleapis.com/auth/analytics.edit` OAuth scope. This requires gRPC Transcoding.\n"]]