Skip to main content
DELETE
/
v1
/
workspaces
/
{id}
/
members
/
{userId}
Remove Workspace Member
curl --request DELETE \
  --url https://api.vertracloud.app/v1/workspaces/{id}/members/{userId}
{}
id
string
required
The ID of the workspace to remove the member from.
userId
string
required
The ID of the user to remove from the workspace.

Response

{}

Error Responses

code
string
The error code indicating the reason for failure. Possible values:
  • UNAUTHORIZED: The user is not authenticated.
  • ONLY_OWNER_CAN_REMOVE_MEMBERS: Only the workspace owner can remove members.
  • CANNOT_REMOVE_OWNER: The workspace owner cannot be removed.
  • MEMBER_NOT_FOUND: The specified user does not exist.
  • MEMBER_NOT_FOUND_IN_ORGANIZATION: The user is not a member of the workspace.
  • ORG_ID_MUST_BE_STRING: The provided workspace_id is not a string.
  • USER_ID_MUST_BE_STRING: The provided user ID is not a string.
message
string
A descriptive message providing additional details about the error.
{
  "code": "UNAUTHORIZED"
}