Create a label
kanbini_create_labelCreate a board-scoped label with a name and palette color and return its id for assigning to cards on that board. Check existing board labels first to avoid duplicates.
Instructions
Create a new label on a board. Labels are board-scoped: the returned id can be put on any card of THAT board with kanbini_set_card_labels. Check the board view's labels[] first so you reuse an existing label instead of making a near-duplicate. Returns { id, boardId }. Colours: pass a palette name (red, orange, amber, yellow, lime, green, teal, cyan, sky, blue, indigo, purple, pink, rose) so it matches the app's swatch picker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| color | Yes | One of the app palette names (red, orange, amber, yellow, lime, green, teal, cyan, sky, blue, indigo, purple, pink, rose) - preferred, so the colour matches the swatches in the app - or a raw CSS colour string such as one read back from another entity. | |
| boardId | Yes |