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

# Update setting

> Updates a group's messaging and editing permissions.



## OpenAPI

````yaml openapi.evolution-v2.json POST /group/updateSetting/{instance}
openapi: 3.1.0
info:
  title: Evolution V2 Layer
  version: 1.0.0
  description: >-
    Pilot Status API Layer — Evolution V2. Base URL
    `https://pilotstatus.com.br/api/layer/evolution-v2`. Authenticate with the
    `apikey` header (your Pilot Status `ps_` key). Instance/session endpoints
    are NOT available through the layer.
servers:
  - url: https://pilotstatus.com.br/api/layer/evolution-v2
security:
  - apiKey: []
tags:
  - name: Call & Business
  - name: Chat
  - name: Group
  - name: Label
  - name: Message
  - name: Profile
  - name: Settings & Proxy
  - name: Storage (S3)
  - name: Template
paths:
  /group/updateSetting/{instance}:
    post:
      tags:
        - Group
      summary: Update setting
      description: Updates a group's messaging and editing permissions.
      operationId: post__group_updateSetting_instance
      parameters:
        - name: instance
          in: path
          required: true
          schema:
            type: string
          description: The number's display name in the Pilot Status dashboard.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                groupJid:
                  type: string
                  description: >-
                    Group JID (may also be sent as a `groupJid` query
                    parameter).
                  example: 120363000000000000@g.us
                action:
                  type: string
                  description: >-
                    One of `announcement`, `not_announcement`, `locked`,
                    `unlocked`.
                  example: announcement
              required:
                - groupJid
                - action
      responses:
        '200':
          description: Success — provider-native response body.
          content:
            application/json:
              schema:
                type: object
                description: >-
                  Wrapper around the raw result of the group setting update
                  (announcement / locked). The current Baileys client resolves
                  without a body on success, so 'updateSetting' may be null.
                properties:
                  updateSetting:
                    type:
                      - string
                      - object
                      - 'null'
                    description: >-
                      Raw provider result of the setting change; null/empty on
                      success in current Baileys versions.
              example:
                updateSetting: success
        default:
          description: Error — provider or layer error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                  error:
                    type: string
                  message:
                    type: string
                  response:
                    type: object
              example:
                status: 400
                error: Bad Request
                message: Invalid payload
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: >-
        Your Pilot Status API key (ps_...). Evolution GO also accepts
        `Authorization: Bearer <key>`.

````