Specific Workspace Member

https://api.xata.io/workspaces/workspace_id/members/user_id

This endpoint enables operations on a specific member of a workspace, referenced by their user ID.

Expected parameters

NameDescriptionInRequiredSchema
workspace_id

Workspace ID

path✅string
user_id

UserID

path✅string

Update Workspace Member Role

PUT
https://api.xata.io/workspaces/workspace_id/members/user_id

Update a workspace member role. Workspaces must always have at least one owner, so this operation will fail if trying to remove owner role from the last owner in the workspace.

Request Body Type Definition

type UpdateWorkspaceMemberRole = {
    role: Role;
};
 
type Role = "owner" | "maintainer";

Responses

type UpdateWorkspaceMemberRole = void;

Remove a Member From the Workspace

DELETE
https://api.xata.io/workspaces/workspace_id/members/user_id

Remove the member from the workspace

Responses

type RemoveWorkspaceMember = void;