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

# Arquivar/Desarquivar Chat

> Arquiva ou desarquiva um chat



## OpenAPI

````yaml openapi-v2.json post /chats/archive
openapi: 3.0.0
info:
  title: Wapizap API v2 - Native
  description: >-
    API v2 nativa Wapizap com arquitetura RESTful moderna. Inclui 60 endpoints
    para gerenciamento completo de integrações WhatsApp, incluindo instâncias,
    mensagens, chats, grupos, contatos, webhooks e downloads.
  version: 2.0.0
  contact:
    name: Wapizap Support
    url: https://wapizap.com/support
servers:
  - url: https://api.wapizap.com/api/v2
    description: Produção
  - url: http://localhost:3000/api/v2
    description: Desenvolvimento
security:
  - BearerAuth: []
tags:
  - name: Instances
    description: Gerenciamento de instâncias WhatsApp
  - name: Messages
    description: Envio e gerenciamento de mensagens
  - name: Chats
    description: Gerenciamento de chats e conversas
  - name: Contacts
    description: Gerenciamento de contatos
  - name: Groups
    description: Gerenciamento de grupos
  - name: Webhooks
    description: Configuração de webhooks
  - name: Downloads
    description: Download de mídias
paths:
  /chats/archive:
    post:
      tags:
        - Chats
      summary: Arquivar/Desarquivar Chat
      description: Arquiva ou desarquiva um chat
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - instanceId
                - chatId
                - archive
              properties:
                instanceId:
                  type: string
                  format: uuid
                chatId:
                  type: string
                archive:
                  type: boolean
      responses:
        '200':
          description: Chat atualizado
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````