get_label_list
Get the list of labels available for tagging items.| Property | |
|---|---|
| Read-only | Yes |
Parameters
None.Returns
A list ofLabelDto objects, each containing:
| Field | Description |
|---|---|
labelId | Label ID |
name | Label display name |
bgColor | Background color (hex) |
create_label
Create a label with a name and background color. Requires super admin.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Label display name. |
bgColor | string | Yes | Background color (hex, e.g. #ff0000). |
Returns
ALabelDto with the created label’s details.
update_label
Update a label’s name and/or background color. Only provided fields are updated. Requires super admin.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
labelId | string | Yes | Label ID. Use get_label_list. |
name | string | No | New label name. |
bgColor | string | No | New background color (hex). |
Returns
ALabelDto with the updated label details.
delete_label
Delete a label. Requires super admin.| Property | |
|---|---|
| Read-only | No |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
labelId | string | Yes | Label ID. Use get_label_list. |