Method: properties.dataStreams.measurementProtocolSecrets.patch
עדכון סוד של Measurement Protocol.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
measurementProtocolSecret.name |
string
פלט בלבד. שם המשאב של הסוד הזה. הסוד הזה יכול להיות צאצא של כל סוג של מקור נתונים. Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שדות שלא צוינו לא יתעדכנו. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של MeasurementProtocolSecret
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של MeasurementProtocolSecret
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של OAuth:
https://www.googleapis.com/auth/analytics.edit
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-14 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-14 (שעון UTC)."],[[["This documentation outlines how to update a measurement protocol secret using a PATCH request to a specific endpoint."],["It specifies the required path and query parameters, including `measurementProtocolSecret.name` and `updateMask`, respectively."],["The request body should contain a `MeasurementProtocolSecret` object to define the changes, and the response, upon success, will also contain a `MeasurementProtocolSecret` object reflecting the updates."],["To authorize this request, you'll need the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This document details updating a measurement protocol secret via a PATCH request to a specific URL: `https://analyticsadmin.googleapis.com/v1alpha/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}`. The `measurementProtocolSecret.name` is a required path parameter. The `updateMask` is a required query parameter specifying fields to update. The request and response bodies both contain a `MeasurementProtocolSecret` instance. The `analytics.edit` OAuth scope is required for authorization.\n"]]