> For the complete documentation index, see [llms.txt](https://docs.astraapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.astraapi.com/integrando/grupos/editar-configuracao-do-grupo.md).

# Editar configuração do grupo

### Exemplo de body a ser enviado

```json
{
    "groupId": "120363046176525911@g.us",
    "setting": "aaaaa"
}
```

<mark style="color:orange;">`PUT`</mark> `https://api.astraapi.com/api/group/setting/{{instanceId}}`

#### Path Parameters

| Name                                         | Type   | Description         |
| -------------------------------------------- | ------ | ------------------- |
| instanceId<mark style="color:red;">\*</mark> | Number | Número da instancia |

#### Headers

| Name                                            | Type   | Description            |
| ----------------------------------------------- | ------ | ---------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Seu token de segurança |

#### Request Body

| Name                                      | Type   | Description                                                                                                                                                                                                                                                                                                     |
| ----------------------------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| groupId<mark style="color:red;">\*</mark> | String | Id do grupo                                                                                                                                                                                                                                                                                                     |
| setting<mark style="color:red;">\*</mark> | String | <p><strong>announcement</strong>: apenas admins podem mandar mensagens<br><strong>not\_announcement</strong>: todos podem mandar mensagem</p><p><strong>unlocked</strong>: todos podem editar as informações do grupo</p><p><strong>locked</strong>: apenas admins podem editar as informações do grupo<br></p> |

{% tabs %}
{% tab title="200: OK " %}

{% endtab %}
{% endtabs %}
