Étiquettes

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).

Autorisation

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).

Paramètres de chemin

labelId*string

The label id, from GET /labels.

Motif^[A-Za-z0-9_-]{1,64}$

Paramètres d'en-tête

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.

Corps de la requête

application/json
  1. body
name*string

The label name.

Longueur1 <= length <= 100
color*integer

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

Plage0 <= value <= 19

Corps de la réponse

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"  }}