cURL
curl --request PUT \ --url https://{host}/api/{session}/labels/{labelId} \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "name": "Lead", "colorHex": "#ff9485", "color": null } '
{ "success": true, "label": { "id": "label123", "name": "Premium Clients", "color": 3 } }
Update name and color of an existing label
200
400
401
404
curl -X PUT https://api.wappfy.com.br/api/my-session/labels/label123 \ -H "Content-Type: application/json" \ -d '{ "name": "Premium Clients", "color": 3 }'
Your Wappfy API key (get it at dash.wappfy.com.br)
Label name
"Lead"
Color in hex
"#ff9485"
Color number, not hex
null
Label ID
"1"
0