Method: properties.patch
طلب HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{property.name=properties/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
property.name |
string
النتائج فقط. اسم المورد لهذه السمة التنسيق: properties/{property_id}، على سبيل المثال: "properties/1000"
|
مَعلمات طلب البحث
المعلمات |
updateMask |
string (FieldMask format)
مطلوب. قائمة الحقول التي سيتم تعديلها يجب أن تكون أسماء الحقول بالتنسيق snake case (مثلاً، "field_to_update"). ولن يتم تعديل الحقول التي تم حذفها. لاستبدال العنصر بأكمله، استخدِم مسارًا واحدًا مع السلسلة "*" لمطابقة جميع الحقول. هذه قائمة مفصولة بفواصل تتضمّن أسماء حقول مؤهَّلة بالكامل. مثال: "user.displayName,photo"
|
نص الطلب
يحتوي نص الطلب على مثال Property
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Property
.
نطاقات التفويض
يجب توفير نطاق OAuth التالي:
https://www.googleapis.com/auth/analytics.edit
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]