Labels

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

Autorisierung

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

Pfadparameter

labelId*string

The label id, from GET /labels.

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

Header-Parameter

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.

Anfrage-Body

application/json
  1. body
name*string

The label name.

Länge1 <= length <= 100
color*integer

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

Bereich0 <= value <= 19

Antwort-Body

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