> ## Documentation Index
> Fetch the complete documentation index at: https://docs.indiqai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Atualizar Contato da Resposta

> Atualiza dados de contato associados à resposta pública

# Atualizar Contato da Resposta

Atualiza os dados de contato da resposta pública de quest.
Usado para completar dados opcionais após o envio inicial.


## OpenAPI

````yaml PATCH /api/v1/public/quests/{estabelecimento_ref}/{response_id}/contact
openapi: 3.1.0
info:
  contact:
    email: support@indiqai.com
    name: IndiqAI Support
    url: https://indiqai.com/
  description: Especificação OpenAPI da API Pública IndiqAI.
  license:
    name: Proprietary
    url: https://indiqai.com/license
  title: IndiqAI API Pública
  version: 1.5.0
servers:
  - description: Produção
    url: https://api.indiqai.com
security: []
paths:
  /api/v1/public/quests/{estabelecimento_ref}/{response_id}/contact:
    patch:
      tags:
        - Public Quests
        - public-quests
      summary: Salvar ou atualizar contato opcional da resposta pública
      operationId: >-
        patch_public_quest_response_contact_api_v1_public_quests__estabelecimento_ref___response_id__contact_patch
      parameters:
        - in: path
          name: estabelecimento_ref
          required: true
          schema:
            title: Estabelecimento Ref
            type: string
        - in: path
          name: response_id
          required: true
          schema:
            format: uuid
            title: Response Id
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicQuestContactUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicQuestContactUpdateResponse'
          description: Successful Response
        '404':
          description: Pesquisa pública não encontrada
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '429':
          description: Rate limit excedido
components:
  schemas:
    PublicQuestContactUpdate:
      description: Payload para atualizar contato opcional de uma resposta pública.
      properties:
        client_name:
          anyOf:
            - maxLength: 120
              type: string
            - type: 'null'
          description: Nome opcional do cliente
          title: Client Name
        client_phone:
          anyOf:
            - maxLength: 30
              type: string
            - type: 'null'
          description: Telefone opcional do cliente
          title: Client Phone
      title: PublicQuestContactUpdate
      type: object
    PublicQuestContactUpdateResponse:
      description: Resultado da atualização de contato opcional da resposta pública.
      properties:
        client_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Client Name
        client_phone:
          anyOf:
            - type: string
            - type: 'null'
          description: Telefone normalizado (apenas dígitos)
          title: Client Phone
        empresa_id:
          format: uuid
          title: Empresa Id
          type: string
        quest_id:
          format: uuid
          title: Quest Id
          type: string
        response_id:
          format: uuid
          title: Response Id
          type: string
        reward_claim_available:
          default: false
          title: Reward Claim Available
          type: boolean
        reward_claim_expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Reward Claim Expires At
        reward_claim_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Reward Claim Status
        reward_issued:
          default: false
          title: Reward Issued
          type: boolean
        reward_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Reward Message
        reward_uid:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Reward Uid
        rewarded_user_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Rewarded User Id
        submitted_at:
          format: date-time
          title: Submitted At
          type: string
        success:
          default: true
          title: Success
          type: boolean
      required:
        - response_id
        - quest_id
        - empresa_id
        - submitted_at
      title: PublicQuestContactUpdateResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````