Method: accounts.brands.patch
בקשת HTTP
PATCH https://travelpartner.googleapis.com/v3/{brand.name=accounts/*/brands/*}
כתובת ה-URL כוללת תחביר gRPC קידוד מחדש.
פרמטרים של נתיב
פרמטרים |
brand.name |
string
שם המשאב של המותג בפורמט accounts/{account_id}/brands/{brandId} . הערך brandId צריך להיות זהה למזהה המותג של השותף שמשמש להתאמה לדף הנחיתה ולשימוש ברשימת הנכסים.
|
פרמטרי שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. השדה שיש לעדכן. אפשר לעדכן רק את השדות displayNames ו-icon_id . יש להשתמש בתחביר שמוצג ב-URI לדוגמה שבהמשך ולספק את הערך החדש בגוף הבקשה. URI של בקשה לדוגמה וגוף בקשה:
PATCH https://travelpartner.googleapis.com/v3/accounts/123456789/
brands/my-brand?updateMask=brand.display_names
{
"displayNames": [{
"language": "en"
"text": "Gilles' Gites"
}]
}
המידע שלמעלה מספיק ליצירת ה-URI וגוף הבקשה. המשפט שבהמשך הוא מידע משלים שנוצר באופן אוטומטי על הפורמט של FieldMask . זו רשימה מופרדת בפסיקים של שמות שדות מלאים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של Brand
.
גוף התגובה
אם התגובה מוצלחת, גוף התגובה מכיל מופע של Brand
.
היקפי הרשאה
יש צורך בהיקף OAuth הבא:
https://www.googleapis.com/auth/travelpartner
למידע נוסף, אפשר לעיין בסקירה הכללית על OAuth 2.0.
כל הזכויות שמורות. Java הוא סימן מסחרי רשום של Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-08-23 (שעון UTC).
[null,null,["עדכון אחרון: 2022-08-23 (שעון UTC)."],[[["Updates an existing brand or creates a new one if it doesn't exist using a PATCH request."],["Requires specifying the brand name in the URL path and the fields to update using `updateMask` in the query parameters."],["The request body should contain the updated brand information in JSON format as defined by the `Brand` object."],["Successful responses will return the updated `Brand` object, and the request needs `https://www.googleapis.com/auth/travelpartner` OAuth scope for authorization."]]],[]]