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

# Atualizar Status da Conversa

> Atualiza o status de uma conversa externa específica para ativo ('active') ou inativo ('inactive').



## OpenAPI

````yaml /api-reference/openapi.json put /account-external-conversation/{id}/update-status
openapi: 3.0.3
info:
  title: WavUps CRM API
  description: >-
    API pública da plataforma WavUps CRM — gerencie leads, produtos, categorias,
    atendimentos, agendamentos, conversas e pipelines de CRM.
  version: 1.0.0
servers:
  - url: https://crm.wavups.com/api/v1
    description: Servidor de produção
security:
  - Token: []
paths:
  /account-external-conversation/{id}/update-status:
    put:
      tags:
        - Conversas
      summary: Atualizar Status da Conversa
      description: >-
        Atualiza o status de uma conversa externa específica para ativo
        ('active') ou inativo ('inactive').
      operationId: updateConversationStatus
      parameters:
        - $ref: '#/components/parameters/id'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - active
                    - inactive
                  description: Novo status da conversa. Deve ser 'active' ou 'inactive'.
      responses:
        '200':
          description: Status da conversa atualizado com sucesso.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Conversation'
        '400':
          description: Status inválido fornecido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorMessage'
        '404':
          $ref: '#/components/responses/Error404'
        '500':
          $ref: '#/components/responses/Error500'
components:
  parameters:
    id:
      name: id
      in: path
      required: true
      description: Identificador único do recurso.
      schema:
        type: string
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: string
        contactName:
          type: string
          nullable: true
        contactPhone:
          type: string
          nullable: true
        accountChatSectorId:
          type: string
          nullable: true
        conversationOwnerId:
          type: string
          nullable: true
        status:
          type: string
        createdAt:
          type: string
          format: date-time
    ErrorMessage:
      type: object
      properties:
        error:
          type: string
          example: Recurso não encontrado.
  responses:
    Error404:
      description: Recurso não encontrado.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
    Error500:
      description: Erro interno no servidor.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorMessage'
  securitySchemes:
    Token:
      type: apiKey
      in: header
      name: Token
      description: Token de autenticacao gerado na plataforma WavUps CRM.

````