# Editar participantes do grupo

### Exemplo de body a ser enviado

```json
{
    "groupId": "120363044029865382@g.us",
    "participants": ["557998416831@s.whatsapp.net"],
    "action": "add"
}
```

<mark style="color:orange;">`PUT`</mark> `https://api.astraapi.com/api/group/participants/{{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                                                         |
| participants<mark style="color:red;">\*</mark> | String\[] | Números dos integrates do grupo que você deseja editar ou adicionar |
| action                                         | String    | Ação que deseja fazer (add, remove, promote, demote)                |

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

{% endtab %}
{% endtabs %}
