Atualiza o nome ou cor de uma etiqueta existente.
cURL
curl --request PATCH \ --url https://api.wappfy.io/api/instances/{instanceId}/labels/{labelId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Updated Name", "color": 2 } '
{ "id": "1", "name": "VIP Clients", "color": 1 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
UUID da instância WhatsApp
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
ID da etiqueta
"Updated Name"
2
Etiqueta atualizada
"1"
Nome da etiqueta
"VIP Clients"
Índice de cor da etiqueta
1
Esta página foi útil?