Skip to main content

Overview

useUpdateMyWorkspaceMembership returns a callable that edits the signed-in user’s own title on a workspace. Authorization: self-service, no capability needed. Only title can be edited here. A member’s other fields (metadata, capabilities, permissions, rank) are edited by a member with the capability, through useUpdateWorkspaceMember. You must hold a direct member row on the workspace. The workspace owner has no member row, so they have no title and get 404 workspace/not-found; so does a user who only reaches in from an ancestor workspace. Your own membership is /workspaces/:workspaceId/members/me: useFetchMyWorkspaceMembership reads it, this hook edits your title, and useLeaveWorkspace leaves it.

Usage Example

Parameters

string
required
The workspace UUID.
string | null
required
Your new title: trimmed, up to 100 characters. null clears it.

Returns

Promise<WorkspaceMember> — your updated WorkspaceMember record, the same type useUpdateWorkspaceMember resolves to.

Error codes