Harthelm Docs
REST APIMembers

Remove a member from an organization, or leave it

Organization owners (`org.members`) remove anyone; every member may remove themselves (leave). The user also leaves the organization's teams, loses their workspace roles there, and their workspaces there wait for a new owner; when it was their last organization, their Git connections are deleted. 409 `last-owner`, and `last-admin` when the user is the last admin of one of its teams.

Generated from openapi/harthelm.yaml at v1.5.0
DELETE
/orgs/{org}/members/{user}

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

org*string
Formatuuid
user*integer

A user's id.

Formatint64
Range1 <= value

Response Body

Removed.

curl -X DELETE 'https://console.example.com/api/v1/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08/members/1'
Empty