Method: locations.questions.patch
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
עדכון שאלה ספציפית שנכתבה על ידי המשתמש הנוכחי.
בקשת HTTP
PATCH https://mybusinessqanda.googleapis.com/v1/{question.name=locations/*/questions/*}
בכתובת ה-URL נעשה שימוש בתחביר המרת gRPC.
פרמטרים של נתיב
פרמטרים |
question.name |
string
לא משתנה. השם הייחודי של השאלה. מיקומים/*/שאלות/* המערכת תתעלם מהשדה הזה אם הוא יוגדר במהלך יצירת השאלה.
|
פרמטרים של שאילתה
פרמטרים |
updateMask |
string (FieldMask format)
חובה. השדות הספציפיים לעדכון. אפשר לעדכן רק את הטקסט של השאלה. זוהי רשימה של שמות שדות מלאים, שמופרדים בפסיקים. דוגמה: "user.displayName,photo"
|
גוף הבקשה
גוף הבקשה מכיל מופע של Question
.
גוף התגובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכלול מופע של Question
.
היקפי הרשאות
נדרש היקף OAuth הבא:
https://www.googleapis.com/auth/business.manage
למידע נוסף, עיין בסקירה הכללית על OAuth 2.0.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-12-01 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2023-12-01 (שעון UTC)."],[[["Updates a specific question's text using a PATCH request to the specified endpoint."],["Requires providing the question's unique name as a path parameter and specifying fields to update using `updateMask` query parameter."],["The request and response bodies utilize the `Question` object, containing question details."],["Authorization necessitates the `https://www.googleapis.com/auth/business.manage` scope for managing business data."]]],["This content outlines the process for updating a user's question via a PATCH request to a specified URL. The URL utilizes gRPC Transcoding syntax, including a `question.name` path parameter, which is immutable and defines the question's unique identifier. The `updateMask` query parameter, using FieldMask format, is mandatory and determines the specific fields to update, limited to question text. The request body contains the updated `Question` data, and a successful response returns an instance of `Question`. This operation requires `business.manage` OAuth scope.\n"]]