orvachat

Labels

Edit Label

POST/api/v1/labels/edit

Create, rename, recolour or delete a label.

Parameters

  • LabelIDstringRequired

    The label id (a whole number as text). You choose the ids.

  • NamestringOptional

    The label name. Needed unless you delete it.

  • ColorintegerOptional

    The label colour number. Needed unless you delete it.

  • DeletedbooleanRequired

    true deletes the label.

Code Examples

cURL
curl -X POST "https://orvachat.com/api/v1/labels/edit" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "LabelID": "7",
  "Name": "Customer",
  "Color": 3,
  "Deleted": false
}'