Method: properties.dataStreams.patch
עדכון של מקור נתונים בנכס.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1alpha/{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 using a PATCH request to the specified endpoint."],["The request must include a `dataStream.name` path parameter to identify the DataStream and an `updateMask` query parameter indicating the fields to update."],["The request body should contain a DataStream object with the updated values, and upon success, the response body will return the updated DataStream object."],["Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope."]]],["This outlines how to update a DataStream via a PATCH request to the specified URL, using gRPC Transcoding syntax. The `dataStream.name` path parameter identifies the target stream. The `updateMask` query parameter dictates which fields to modify. The request and response bodies both utilize the `DataStream` resource. Authorization requires the `analytics.edit` OAuth scope. The \"Try it!\" option allows users to directly interact with the service.\n"]]