Method: locations.questions.patch
HTTP リクエスト
PATCH https://mybusinessqanda.googleapis.com/v1/{question.name=locations/*/questions/*}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
question.name |
string
変更不可。質問の一意の名前。locations/*/questions/* このフィールドは、質問の作成時に設定しても無視されます。
|
クエリ パラメータ
パラメータ |
updateMask |
string (FieldMask format)
必須。更新するフィールドです。更新できるのは質問文のみです。 完全修飾フィールド名のカンマ区切りリストです。(例: "user.displayName,photo" )。
|
リクエストの本文
リクエストの本文には Question
のインスタンスが含まれています。
レスポンスの本文
成功した場合、レスポンスの本文には Question
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/business.manage
詳細については、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-12-01 UTC。
[null,null,["最終更新日 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"]]