DELETE
/
v1
/
organizations
/
{id}
/
members
/
{userId}
Remove Organization Member
curl --request DELETE \
  --url https://api.vertracloud.app/v1/organizations/{id}/members/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "status": "success"
}
id
string
required
The ID of the organization to remove the member from.
userId
string
required
The ID of the user to remove from the organization.

Response

status
string
Indicates whether the call was successful. success if successful, error if not.
{
  "status": "success"
}

Error Responses

status
string
Indicates whether the call was successful. error if not successful.
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 organization owner can remove members.
  • CANNOT_REMOVE_OWNER: The organization 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 organization.
  • ORG_ID_MUST_BE_STRING: The provided organization ID is not a string.
  • USER_ID_MUST_BE_STRING: The provided user ID is not a string.
{
  "status": "error",
  "code": "UNAUTHORIZED"
}