PUT
/
api
/
{session}
/
labels
/
{labelId}
Atualizar uma etiqueta
curl --request PUT \
  --url https://api.wappfy.com.br/api/{session}/labels/{labelId} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "name": "Lead",
  "colorHex": "#ff9485",
  "color": null
}'
{
  "id": "1",
  "name": "Lead",
  "color": 0,
  "colorHex": "#ff9485"
}

Authorizations

apikey
string
header
required

Apikey

Path Parameters

labelId
string
required

Body

application/json
name
string
required

Label name

Example:

"Lead"

colorHex
string

Color in hex

Example:

"#ff9485"

color
number

Color number, not hex

Example:

null

Response

200 - application/json
id
string
required

Label ID

Example:

"1"

name
string
required

Label name

Example:

"Lead"

color
number
required

Color number, not hex

Example:

0

colorHex
string
required

Color in hex

Example:

"#ff9485"