Minctrl Docs

Remove a member

DELETE
/companies/{company_id}/members/{user_id}

Soft-remove a member from the company.

Requires a valid bearer token and the member.remove capability on the company. Company-scoped to the company_id in the path. Owner-protection invariants (e.g. removing the sole owner) raise 400.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

company_id*Company Id
user_id*User Id

Response Body

application/json

curl -X DELETE "https://example.com/companies/string/members/string"
Empty
Empty
Empty
Empty
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}