Overview
useUpdateSpace returns a callable function for updating a space. Only space admins can update a space. Supports updating avatar and banner images.
When using SpaceProvider, prefer calling updateSpace from useSpace — it handles state updates automatically.
Usage Example
Parameters
UUID of the space to update.
Fields to update. All fields are optional. New display name (3–100 characters).
New URL slug. Pass null to remove.
New description. Pass null to remove.
Updated reading permission.
postingPermission "anyone" | "members" | "admins"
Updated posting permission.
visibility "public" | "unlisted" | "private"
Updated visibility (listing/discoverability). Independent of readingPermission. See Space visibility . Updated NSFW own-flag. Toggling it recomputes this space’s effective NSFW and cascades it top-down to every descendant space (and, live, to their entities) in the same transaction. See Space NSFW flagging . Updated join approval requirement.
avatar { file: File | Blob; options: UploadImageOptions }
New avatar image to upload.
banner { file: File | Blob; options: UploadImageOptions }
New banner image to upload.
Returns
Returns the updated SpaceDetailed object.