Method: accounts.dataSources.patch
עדכון ההגדרה הקיימת של מקור הנתונים. השדות שמוגדרים במסכת העדכון אבל לא צוינו במשאב יימחקו.
בקשת HTTP
PATCH https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
dataSource.name |
string
מזהה. השם של מקור הנתונים. פורמט: {datasource.name=accounts/{account}/dataSources/{datasource}}
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. רשימת השדות של מקור הנתונים שרוצים לעדכן. שדות שצוינו במסכת העדכון ללא ערך שצוין בגוף יימחקו ממקור הנתונים. אין תמיכה במתן הערך המיוחד '*' להחלפה מלאה של מקור הנתונים.
|
גוף הבקשה
גוף הבקשה מכיל מופע של DataSource
.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של DataSource
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/content
מידע נוסף זמין בOAuth 2.0 Overview.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-01-23 (שעון UTC).
[null,null,["עדכון אחרון: 2025-01-23 (שעון UTC)."],[[["This documentation outlines how to update an existing data source configuration using a PATCH request."],["The request should target the specific data source using its unique identifier in the path."],["An `updateMask` query parameter is required to specify the fields to be updated or deleted."],["The request body must contain the updated `DataSource` object, adhering to the provided schema."],["Successful requests will return the updated `DataSource` object in the response."]]],["This describes updating an existing data source configuration via a `PATCH` request to a specific URL: `https://merchantapi.googleapis.com/datasources/v1beta/{dataSource.name=accounts/*/dataSources/*}`. The `dataSource.name` is a required path parameter. The `updateMask` query parameter specifies fields for update or deletion. The request body contains `DataSource` details for the update. A successful response also returns a `DataSource` instance. The operation requires the `https://www.googleapis.com/auth/content` authorization scope.\n"]]