cURL
curl --request PUT \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Equipe Wabox",
"description": "Grupo de testes",
"announce": true,
"ephemeral_seconds": 604800
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Equipe Wabox',
description: 'Grupo de testes',
announce: true,
ephemeral_seconds: 604800
})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}"
payload = {
"name": "Equipe Wabox",
"description": "Grupo de testes",
"announce": True,
"ephemeral_seconds": 604800
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Equipe Wabox',
'description' => 'Grupo de testes',
'announce' => true,
'ephemeral_seconds' => 604800
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}"
payload := strings.NewReader("{\n \"name\": \"Equipe Wabox\",\n \"description\": \"Grupo de testes\",\n \"announce\": true,\n \"ephemeral_seconds\": 604800\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"updated": true
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Atualizar nome / descrição / foto / configurações
Body parcial: envie só os campos que quer alterar. remove_picture: true remove a foto; description: "" limpa a descrição. Id do grupo como devolvido pela API / webhooks: <id>-group (o JID bruto <id>@g.us também é aceito). Imediata: exige a instância conectada (caso contrário, 409 instance_not_connected).
PUT
/
instances
/
{instance_id}
/
token
/
{token}
/
groups
/
{id}
cURL
curl --request PUT \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Equipe Wabox",
"description": "Grupo de testes",
"announce": true,
"ephemeral_seconds": 604800
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Equipe Wabox',
description: 'Grupo de testes',
announce: true,
ephemeral_seconds: 604800
})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}"
payload = {
"name": "Equipe Wabox",
"description": "Grupo de testes",
"announce": True,
"ephemeral_seconds": 604800
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Equipe Wabox',
'description' => 'Grupo de testes',
'announce' => true,
'ephemeral_seconds' => 604800
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.wabox.me/instances/{instance_id}/token/{token}/groups/{id}"
payload := strings.NewReader("{\n \"name\": \"Equipe Wabox\",\n \"description\": \"Grupo de testes\",\n \"announce\": true,\n \"ephemeral_seconds\": 604800\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"updated": true
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Path Parameters
Id da instância (dashboard › instância › Credenciais).
Token da instância. Trate como senha.
Id do grupo (<id>-group).
Example:
"120363012345678901-group"
Body
application/json
Required string length:
1 - 100Maximum string length:
2048URL http(s) pública, data: URL ou base64 puro.
Required string length:
1 - 94371840Required string length:
1 - 255Available options:
admin_add, all_member_add ephemeral_seconds
Option 1 · enum<number>Option 2 · enum<number>Option 3 · enum<number>Option 4 · enum<number>
Available options:
0 Response
Grupo atualizado.
Available options:
true