Method: accounts.patch
طلب HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{account.name=accounts/*}
يستخدِم عنوان URL بنية تحويل ترميز gRPC.
مَعلمات المسار
المعلمات |
account.name |
string
النتائج فقط. اسم المورد لهذا الحساب. التنسيق: accounts/{account}، على سبيل المثال: "accounts/100"
|
مَعلمات طلب البحث
المعلمات |
updateMask |
string (FieldMask format)
مطلوب. قائمة الحقول التي سيتم تعديلها يجب أن تكون أسماء الحقول بالتنسيق snake case (مثلاً، field_to_update). ولن يتم تعديل الحقول التي تم حذفها. لاستبدال العنصر بأكمله، استخدِم مسارًا واحدًا مع السلسلة "*" لمطابقة جميع الحقول. هذه قائمة مفصولة بفواصل تتضمّن أسماء حقول مؤهَّلة بالكامل. مثال: "user.displayName,photo"
|
نص الطلب
يحتوي نص الطلب على مثال Account
.
نص الاستجابة
إذا كانت الاستجابة ناجحة، يحتوي نص الاستجابة على مثال Account
.
نطاقات التفويض
يجب توفير نطاق 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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["This document explains how to update an existing Google Analytics account using the `PATCH` HTTP request method."],["You will need to provide the `account.name` as a path parameter and `updateMask` as a query parameter specifying the fields to update."],["The request body should contain the updated account details in the format of the [Account](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts#Account) object."],["A successful request will return the updated [Account](/analytics/devguides/config/admin/v1/rest/v1alpha/accounts#Account) object in the response body."],["Authorization is required with the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines the process of updating an account via a PATCH request to the Google Analytics Admin API. The request URL structure is defined using gRPC Transcoding syntax, with `account.name` as a required path parameter. A `updateMask` query parameter specifies which fields to modify. The request and response bodies use the `Account` resource format. Authorization requires the `analytics.edit` OAuth scope. A try it option is available to help test.\n"]]