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

# Update message filtering settings

> Updates the ignore_groups and ignore_status settings for a session. These settings control whether messages from groups and status updates are filtered out.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/sessions/{sessionId}/ignore-settings
openapi: 3.1.0
info:
  title: D-API - Infraestrutura WhatsApp Completa
  description: >-
    Solução escalável e robusta para gestores de automação, SaaS e usuários
    finais que precisam de uma integração WhatsApp confiável. Oferece múltiplas
    instâncias simultâneas, webhooks em tempo real, dashboard intuitivo e API
    REST documentada com 99.9% de uptime e latência inferior a 30ms.
  version: 1.2.0
  contact:
    name: Suporte D-API
    email: suporte@d-api.cloud
    url: https://d-api.cloud
servers:
  - url: https://api.d-api.cloud
    description: Produção
security:
  - ApiKeyAuth: []
tags:
  - name: Início
    description: Endpoints base
  - name: Sessões
    description: Endpoints para gerenciamento de sessões
  - name: Mensagens
    description: Endpoints para envio de mensagens
  - name: Ligações URA
    description: >-
      Disparo de ligações de voz (URA): individual ou em massa, com áudio ou
      fluxo IVR.
  - name: SMS
    description: 'Envio de SMS: individual ou em massa.'
paths:
  /api/v1/sessions/{sessionId}/ignore-settings:
    post:
      tags:
        - Sessões
      summary: Update message filtering settings
      description: >-
        Updates the ignore_groups and ignore_status settings for a session.
        These settings control whether messages from groups and status updates
        are filtered out.
      operationId: postApiV1SessionsBySessionIdIgnore-settings
      parameters:
        - name: sessionId
          in: path
          required: true
          schema:
            type: string
          description: Session identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                ignoreGroups:
                  type: boolean
                ignoreStatus:
                  type: boolean
          multipart/form-data:
            schema:
              type: object
              properties:
                ignoreGroups:
                  type: boolean
                ignoreStatus:
                  type: boolean
          text/plain:
            schema:
              type: object
              properties:
                ignoreGroups:
                  type: boolean
                ignoreStatus:
                  type: boolean
      responses:
        '200':
          description: Ignore settings updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Success message
                  sessionId:
                    type: string
                    description: Session identifier
                  ignoreGroups:
                    type: boolean
                    description: Updated ignore groups setting
                  ignoreStatus:
                    type: boolean
                    description: Updated ignore status setting
                  updatedAt:
                    type: string
                    format: date-time
                    description: Timestamp of the update
                required:
                  - message
                  - sessionId
                  - updatedAt
              example:
                message: Ignore settings updated successfully
                sessionId: session123
                ignoreGroups: true
                ignoreStatus: false
                updatedAt: '2024-01-15T10:30:00.000Z'
        '404':
          description: Session not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  sessionId:
                    type: string
                  code:
                    type: number
              example:
                error: Session not found
                sessionId: session123
                code: 404
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  sessionId:
                    type: string
                  code:
                    type: number
                  details:
                    type: string
              example:
                error: Failed to update ignore settings
                sessionId: session123
                code: 500
                details: Database connection error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'API Key para autenticação. Formato: <API_KEY>'

````