orgs_write
Create, update, or delete organizations and assign or unassign agents to them; deleting an organization also removes its associated clients.
Instructions
Create/update/delete organizations or assign/unassign an agent to an org. Actions: create, update, delete, assign_agent. For reads use orgs_write siblings orgs_read. Destructive: delete removes the org and associated clients.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | No | For action=update: org fields to change (from the main org schema; only what you send changes). | |
| name | No | For create: org display name (Clients page card). | |
| No | For create: org contact email. | ||
| orgId | No | Org id (orgs_read list / search). Required for update, delete and assign_agent. | |
| action | Yes | ||
| agentId | No | For assign_agent: the agent to give to (or take from) the org. | |
| assignAction | No | For assign_agent: assign gives the org access to the agent, unassign removes it. | |
| squarePhotoURL | No | For create: org logo URL (https), shown as a round avatar. |