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 および関連会社の登録商標です。
  最終更新日 2025-07-25 UTC。
  
  
  
    
      [null,null,["最終更新日 2025-07-25 UTC。"],[],["This describes how to create or update an answer to a user question via an API.  A `POST` HTTP request is sent to a specific URL containing the question's location (`parent`). The request body, formatted as JSON, contains the new `answer`. The `parent` path parameter is required, specifying the question's name.  Authorization requires the `business.manage` OAuth scope.  Upon success, the response body returns the created or updated `Answer`.\n"]]