Etiquetas

Edit label

PUT
/labels/{labelId}

Changes the name and the color (both). WhatsApp Business only: on a regular number, WhatsApp rejects it (422 etiquetas_indisponiveis).

Autorización

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Parámetros de ruta

labelId*string

The label id, from GET /labels.

Patrón^[A-Za-z0-9_-]{1,64}$

Parámetros de header

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

Cuerpo de la petición

application/json
  1. body
name*string

The label name.

Longitud1 <= length <= 100
color*integer

The WhatsApp color index, from 0 to 19 (0 #ff9485, 1 #64c4ff, 2 #ffd429, 3 #dfaef0, 4 #99b6c1, 5 #55ccb3...).

Rango0 <= value <= 19

Cuerpo de la respuesta

The edited label.

application/json
  1. response
data*
curl -X PUT 'https://app.wappfy.io/api/v1/labels/7' \  -H 'X-Api-Key: wpf_YOUR_KEY' \  -H 'Content-Type: application/json' \  -d '{  "name": "Cliente VIP",  "color": 2}'
{  "data": {    "id": "string",    "name": "string",    "color": 0,    "color_hex": "string"  }}