Update a sub-account
cooper_update_workspaceUse this when a parent should rename a sub-account or change how many live inboxes it may hold. Requires auth. Inputs: workspace_id (required), name (optional; 1–64 characters), inbox_quota (optional integer, at least 1). Returns the workspace {id, name, inbox_quota, inboxes_used, account_id, api_key_prefix, created_at}. An inbox_quota below the current live inboxes returns 409 quota_below_usage and changes nothing. Another parent's workspace returns 404 workspace_not_found. A sub-account key returns 403 permission_denied. An inbox-scoped key returns 403 permission_denied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name, 1–64 characters. Omit it to leave the name unchanged. | |
| inbox_quota | No | New maximum live inboxes. A value below current live inboxes is 409 quota_below_usage. | |
| workspace_id | Yes | Workspace id (ws_…) created by this parent account |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Workspace id. | |
| name | No | Human-readable name. | |
| api_key | No | Workspace API key, returned only once on create. Never repeat it in full. | |
| account_id | No | Sub-account id for this workspace. | |
| created_at | No | ISO-8601 time the object was created. | |
| inbox_quota | No | Most inboxes the workspace may hold. | |
| inboxes_used | No | Live inboxes in the workspace. | |
| api_key_prefix | No | First characters of the workspace key, for display. |