Method: locations.questions.answers.upsert
指定された質問に対して、回答を作成するか、ユーザーが書いた既存の回答を更新します。ユーザーが作成できる回答は質問ごとに 1 つのみです。
HTTP リクエスト
POST https://mybusinessqanda.googleapis.com/v1/{parent=locations/*/questions/*}/answers:upsert
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
parent |
string
必須。回答を作成する質問の名前。
|
リクエスト本文
リクエストの本文には、次の構造のデータが含まれます。
JSON 表現 |
{
"answer": {
object (Answer )
}
} |
フィールド |
answer |
object (Answer )
必須。新しい回答。
|
レスポンスの本文
成功した場合、レスポンスの本文には Answer
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/business.manage
詳しくは、OAuth 2.0 の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[null,null,["最終更新日 2024-08-21 UTC。"],[[["This documentation outlines the process for creating or updating an answer to a question using the My Business Q&A API."],["The request requires a `POST` method to a specific endpoint with parameters specifying the question and the new answer content."],["The request body must contain a JSON object with the answer details, adhering to a defined structure."],["Successful execution results in a response containing the created or updated answer object."],["Authorization using the `business.manage` scope is required to utilize this API functionality."]]],[]]