Create a label
Defines a label on the board. name is required (at most 40
characters) and unique on the board; color is a hex colour such as
#1d4ed8.
Requires the board:board:write scope.
Authorization
Parameters
Path parameters
boardIDstring requiredThe board's ID.
Request body required
namestring requiredcolorstring required
Responses
201
The label was created.
dataobjectlabelLabelShow Label properties
idstringboard_idstringnamestringcolorstringcreated_atstring (date-time)
400
The body is not JSON for this endpoint, or carries a field it does not
know (INVALID_BODY), or a field breaks a rule (VALIDATION_ERROR;
the message says which).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
It does not exist, or it is on a board the caller cannot see (NOT_FOUND).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
409
The board already has a label with this name (LABEL_NAME_TAKEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X POST 'https://evohub.io/api/v1/board/boards/brd_5b0c8e1a2f3d4c6b9a7e0d1f2c3b4a59/labels' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "security",
"color": "#b91c1c"
}'
