Bulk set account category
bulk_set_account_categoryReplace the categories on one or more accounts. Valid categories: CUSTOMER, PROSPECT, OPEN_OPPORTUNITY, CLOSED_LOST, CHURNED, PARTNER, COMPETITOR, OTHER. An account can carry several; this call removes every category not listed, so each account ends up with exactly the given ones. Pass the full set in categories; category is the older single-value form, used only when categories is empty. To clear an account's categories use BulkRemoveAccountCategories. Accounts are identified by internal UUID, not name or CRM id. Returns updated_count plus skipped_account_ids: an account is skipped when the id does not exist in this workspace, so a non-empty skipped list means those ids were wrong, not that the write failed. To attach tags use the Tagging service instead.
Use when: Use when the user asks to re-classify accounts outright — 'move Acme to Prospect', 'these are only Partners'. To add a category while keeping the existing ones ('also mark Acme as a Partner') use BulkAddAccountCategories; to drop one use BulkRemoveAccountCategories. Resolve account UUIDs first via search_accounts_with_filters or get_accounts_by_ids; never guess them. This writes to the workspace and is visible to every user in it, so confirm the account list with the user before calling when the selection came from an ambiguous search.
Behavior: destructive
workspace_id / user_id are injected from request headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | ||
| categories | No | ||
| account_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||