Skip to main content
PUT
/
api
/
instances
/
{instanceId}
/
labels
/
chats
/
{chatId}
Set labels for a chat
curl --request PUT \
  --url https://api.wappfy.io/api/instances/{instanceId}/labels/chats/{chatId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "labels": [
    "1",
    "2"
  ]
}
'
{
  "ok": true
}

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"

chatId
string
required

Chat ID

Body

application/json
labels
string[]
required
Example:
["1", "2"]

Response

Labels set

ok
boolean
required

Operation succeeded

Example:

true