Labels
Create a label or group
Requires the Labels: Create permission (on by default for admins and members).
Request rules
- Send isGroup: true to create a group. A group cannot have color or parentId; sending either returns 400.
- parentId must be the labelId of an active group in your company. A missing group returns 404 "Parent group not found."; a label that is not a group returns 400 "A label can only be placed inside a group."
- color defaults to #6366f1 when you leave it out.
- sortOrder defaults to 0.
Errors
- 400 when a field fails validation or the parent is not a group.
- 403 without the permission.
- 404 when the parent group does not exist.
- 409 when an active label with the same name already exists under the same parent. Names are compared ignoring case, after trimming and collapsing spaces.
post/labels
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/labels
- Auth: API key in header x-speakai-key and API key in header x-access-token
Request body
Example request
{
"color": "#22c55e"
}Response
Success
Changes
No recorded changes to this operation across all 2 revisions of this API.