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

# Atualizar uma conversa

> Atualização genérica — envie apenas os campos que quer alterar (status, estágio do pipeline, responsável, etc).




## OpenAPI

````yaml /api-reference/openapi.yaml patch /chat/conversations/{id}
openapi: 3.0.3
info:
  title: Nupapia API — Integração
  version: '1.0'
  description: >
    Referência da API pública da Nupapia para integração de sistemas terceiros:
    conversas de chat e CRM (clientes). Gere um token de integração em
    **Configurações → Integrações** dentro da Nupapia e use-o como Bearer token
    em todas as chamadas abaixo.
servers:
  - url: https://api.nupapia.com.br/api
    description: Produção
security:
  - integrationToken: []
paths:
  /chat/conversations/{id}:
    patch:
      tags:
        - Conversas
      summary: Atualizar uma conversa
      description: >
        Atualização genérica — envie apenas os campos que quer alterar (status,
        estágio do pipeline, responsável, etc).
      parameters:
        - $ref: '#/components/parameters/ConversationId'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                assigned_user_id:
                  type: integer
                topic:
                  type: string
                evaluation:
                  type: string
                pipeline_id:
                  type: integer
                pipeline_stage_id:
                  type: integer
                archive:
                  type: boolean
                pinned:
                  type: boolean
                spam:
                  type: boolean
      responses:
        '200':
          description: Conversa atualizada
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/Conversation'
components:
  parameters:
    ConversationId:
      name: id
      in: path
      required: true
      schema:
        type: integer
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: integer
          example: 4821
        status:
          type: string
          example: open
        acceptance_status:
          type: string
          example: accepted
        channel:
          type: object
        client:
          type: object
        assignedUser:
          type: object
        stage:
          type: object
          nullable: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    integrationToken:
      type: http
      scheme: bearer
      bearerFormat: Token de integração (gerado em Configurações → Integrações)

````