Method: properties.patch
HTTP isteği
PATCH https://analyticsadmin.googleapis.com/v1alpha/{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."],[[["Updates a Google Analytics 4 property using the `PATCH` method and provides instructions on constructing the request."],["Requires specifying the property name in the URL path and using a FieldMask in the query parameters to indicate which fields to update."],["The request body should contain the updated Property object, following the structure defined in the provided link, and a successful response will return the updated Property object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope for making changes to the property."]]],["This document details how to update a property using a PATCH request to the specified URL: `https://analyticsadmin.googleapis.com/v1alpha/{property.name=properties/*}`. The `property.name` in the URL is a path parameter. The `updateMask` is a required query parameter to specify fields to update. The request body should contain a `Property` instance with modified values, and a successful response also returns a `Property` instance. This action requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]