Add New Label

POST/api/labels

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
title String Mandatory Label title
context String Mandatory Label context (project|invoice|ticket|task|client|lead|event|note|to_do|subscription|...)
color String optional Optional Label color as a hex value (e.g. #83c340)
user_id Number optional Optional owning user id (used for personal contexts such as event|note|to_do); defaults to 0
curl -X POST "https://yoursite.com/api/labels" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "title": "...", "context": "..." }'

Success-Response:

HTTP/1.1 201 Created
{ "status": 200, "messages": {"success": "Record saved"}, "id": 1 }
MethodPOST
Path/api/labels
GroupLabels
Sincev1.0.0
Defined inRestApi/Controllers/LabelsController.php