Remove a Niche from Spaces
remove_niche_spacesRemove a niche from one or more Spaces to change who can access it. The call is all-or-nothing and returns removed and notPresent.
Instructions
Use this to take a niche out of one or more Spaces (ids from list_spaces). A Space controls who can see the niche, so adding or removing one changes access. Returns removed and notPresent. Undo with add_niche_spaces. 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`. | |
| spaceIds | Yes | The ids of the Spaces to take the niche out of, 1-100, unique. Get them from `list_spaces`. |