Method: properties.dataStreams.patch
עדכון של מקור נתונים בנכס.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{dataStream.name=properties/*/dataStreams/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
dataStream.name |
string
פלט בלבד. שם המשאב של מקור הנתונים הזה. פורמט: properties/{property_id}/dataStreams/{stream_id} דוגמה: "properties/1000/dataStreams/2000"
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של DataStream
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של DataStream
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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 a DataStream associated with a Google Analytics 4 property."],["The request requires specifying the DataStream name as a path parameter and an update mask as a query parameter."],["Request and response bodies utilize the `DataStream` object structure for data exchange."],["Authorization necessitates the `analytics.edit` scope for successful execution."]]],["This outlines updating a DataStream using a PATCH request to a specified URL structure: `https://analyticsadmin.googleapis.com/v1beta/{dataStream.name=properties/*/dataStreams/*}`. The `dataStream.name` parameter in the path is required. Updates are defined in the `updateMask` query parameter using FieldMask format. The request and response bodies utilize the DataStream format. It also requires the `https://www.googleapis.com/auth/analytics.edit` authorization scope.\n"]]