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
Name | Description | In | Required | Schema |
---|---|---|---|---|
workspace_id | Workspace ID | path | ✅ | string |
user_id | UserID | path | ✅ | string |
Update Workspace Member Role
PUThttps://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;
type UpdateWorkspaceMemberRole = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
{
"message": "invalid API key"
}
type UpdateWorkspaceMemberRole = {
id?: string;
message: string;
};
type UpdateWorkspaceMemberRole = void;
Remove a Member From the Workspace
DELETEhttps://api.xata.io/workspaces/workspace_id/members/user_id
Remove the member from the workspace
Responses
type RemoveWorkspaceMember = void;
type RemoveWorkspaceMember = {
id?: string;
message: string;
};
{
"message": "invalid API key"
}
{
"message": "invalid API key"
}
type RemoveWorkspaceMember = {
id?: string;
message: string;
};
type RemoveWorkspaceMember = void;