Method: properties.dataStreams.measurementProtocolSecrets.patch
עדכון סוד של Measurement Protocol.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{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)."],[[["Updates an existing measurement protocol secret using a PATCH request to a specific endpoint."],["Requires specifying the measurement protocol secret's resource name in the path parameter."],["Allows selective field updates via the `updateMask` query parameter."],["Uses a `MeasurementProtocolSecret` object in the request body to define the updates and returns the same object type in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines how to update a measurement protocol secret using a `PATCH` request to the specified URL. The URL utilizes gRPC Transcoding syntax and includes a path parameter `measurementProtocolSecret.name`. A `updateMask` query parameter is required to specify which fields to update. The request and response bodies both use the `MeasurementProtocolSecret` resource. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]