Remove a member from a workspace
Authenticate with an operator token or a signed-in Foliot Console session.
Ends the person’s access to the workspace and its apps on their very next request. Their account, and any other workspace they belong to, is untouched. An owner of the workspace, or an operator token. 404 if the person is not a member of this workspace. 409 if they are the workspace’s only owner, whoever asks: make someone else an owner first. An owner may remove themselves once another owner exists. The caller’s own role is read again at the moment of the change, so an owner who was demoted or removed a moment earlier is refused (403 or 404) and removes nobody. Their Clerk account is untouched and they can still sign in; they see no workspace they are not in. To let them back an owner invites them again.
Path parameters
string (uuid)The workspace.
string (uuid)Foliot's id for the member (userId in the member list), not their Clerk id.