Skip to main content
PATCH
/
api
/
instances
/
{instanceId}
/
labels
/
{labelId}
Update a label
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

instanceId
string<uuid>
required

The WhatsApp instance UUID

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

labelId
string
required

Label ID

Body

application/json
name
string
Example:

"Updated Name"

color
number
Example:

2

Response

Label updated

id
string
required

Label ID

Example:

"1"

name
string
required

Label name

Example:

"VIP Clients"

color
number
required

Label color index

Example:

1