update_client_space
Rename a client space, change its archive status, or set/clear the password or allowed_email_domain gate for all pages. Omit any field to leave it unchanged.
Instructions
Rename a client space, archive or unarchive it, or set the viewer gate that covers every page in the space. Omit a field to leave it untouched. A rename changes the display name only — the slug is a permanent addressing contract and never moves. Archiving keeps everything serving (pages, portal, connected address) and frees the space’s plan slot; unarchiving takes a slot back and returns 402 when the plan is full. password and allowed_email_domain gate the whole space and are inherited by pages already filed under it as well as ones published later; pass null to remove either. Setting a gate is a paid feature: on a free key it returns 402 plan_password_not_available or plan_viewer_gate_not_available. Clearing a gate, or changing one the space already carries, always works. A 409 name_taken means another active space already answers to that name — report that rather than retrying with a variation, which would leave the user with two spaces for one client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| archived | No | ||
| password | No | ||
| id_or_slug | Yes | Space id or slug from list_client_spaces. Not the display name. | |
| allowed_email_domain | No |