Method: properties.dataStreams.eventCreateRules.patch
עדכון של EventCreateRule.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{eventCreateRule.name=properties/*/dataStreams/*/eventCreateRules/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
eventCreateRule.name |
string
פלט בלבד. שם המשאב של משאב EventCreateRule הזה. Format: properties/{property}/dataStreams/{dataStream}/eventCreateRules/{eventCreateRule}
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של EventCreateRule
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של EventCreateRule
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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 an existing EventCreateRule using a PATCH request to a specified endpoint."],["You will need to provide the `eventCreateRule.name` as a path parameter and use the `updateMask` query parameter to specify the fields to be updated."],["The request body should contain the updated EventCreateRule object in JSON format and the response will contain the updated EventCreateRule if successful."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This documentation details updating an EventCreateRule via a PATCH request to a specific URL: `https://analyticsadmin.googleapis.com/v1alpha/{eventCreateRule.name=properties/*/dataStreams/*/eventCreateRules/*}`. The `eventCreateRule.name` is a required path parameter for identifying the resource. The `updateMask` query parameter specifies which fields to modify using a field mask. The request body contains the updated `EventCreateRule` data, and the response body returns the updated `EventCreateRule`. This action needs `analytics.edit` OAuth scope.\n"]]