Method: properties.updateDataRetentionSettings
עדכון של הגדרות שמירת הנתונים של אובייקט יחיד (singleton) בנכס הזה.
בקשת HTTP
PATCH https://analyticsadmin.googleapis.com/v1beta/{dataRetentionSettings.name=properties/*/dataRetentionSettings}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
dataRetentionSettings.name |
string
פלט בלבד. שם המשאב של משאב DataRetentionSetting הזה. פורמט: properties/{property}/dataRetentionSettings
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות שרוצים לעדכן. שמות השדות חייבים להיות באותיות רישיות (למשל, "field_to_update"). שדות שלא צוינו לא יתעדכנו. כדי להחליף את הישות כולה, משתמשים בנתיבים אחד עם המחרוזת '*' כדי להתאים לכל השדות. זוהי רשימה של שמות שדות מוגדרים במלואם, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של DataRetentionSettings
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של DataRetentionSettings
.
היקפי הרשאה
נדרש היקף ההרשאות הבא של 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 method updates the data retention settings for a Google Analytics 4 property using an HTTP PATCH request."],["It requires specifying the property in the path parameter and uses a field mask in the query parameter to indicate which fields should be updated."],["The request body should contain the desired DataRetentionSettings, and a successful response will return the updated settings."],["Authorization with the `https://www.googleapis.com/auth/analytics.edit` scope is necessary to use this method."]]],["This document details updating data retention settings for a property using a `PATCH` request to a specified URL. The URL includes a path parameter, `dataRetentionSettings.name`, indicating the resource to be updated. The `updateMask` query parameter specifies which fields to modify. The request and response bodies use the `DataRetentionSettings` format. The process requires authorization via the `https://www.googleapis.com/auth/analytics.edit` OAuth scope. It also supports the `Try it!` function.\n"]]