Add Labels to a Niche
add_niche_labelsAdd a niche to one or more existing labels by ID; returns counts of added and already-present labels and fails if any ID is invalid.
Instructions
Use this to put a niche in one or more labels (ids from list_labels). Returns added and alreadyPresent. Undo with remove_niche_labels. Only the organization owner or a team admin can change a niche's Spaces and labels; anyone else is refused with a 403 (INSUFFICIENT_ROLE), so tell the user instead of retrying. A change is all or nothing: if any id is unknown, or a Space is one the user has only view rights on, the whole call fails and nothing changes (the error lists the offending ids). Ids already in the wanted state are counted, never errors, so a repeat is safe. Costs nothing. Limited to 2 calls per minute per niche, so put every id in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nicheId | Yes | The niche to change. Get one from `list_niches`. | |
| labelIds | Yes | The ids of the labels to add the niche to, 1-100, unique. Get them from `list_labels`. |