POST
/
v1
/
labels
Upsert label
curl --request POST \
  --url https://api.wazapin.com/v1/labels \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "channel_id": "<string>",
  "color": "<string>",
  "label_id": "<string>",
  "name": "<string>"
}
'
{
  "data": {
    "color": "<string>",
    "id": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Session token or API key

Body

application/json
channel_id
string
required

Channel ID

Minimum string length: 1
color
string

Label color update

label_id
string

Label ID for edit semantics

name
string

Label name update

Response

OK

data
object
required