Method: properties.patch
HTTP isteği
PATCH https://analyticsadmin.googleapis.com/v1beta/{property.name=properties/*}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
property.name |
string
Yalnızca çıkış. Bu mülkün kaynak adı. Biçim: properties/{property_id} Örnek: "properties/1000"
|
Sorgu parametreleri
Parametreler |
updateMask |
string (FieldMask format)
Zorunlu. Güncellenecek alanların listesi. Alan adları küçük harflerle yazılmalıdır (ör. "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, Property
öğesinin bir örneğini içerir.
Yanıt gövdesi
Başarılıysa yanıt metni, Property
öğ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 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"]]