DELETE /v1/companies/{company_id}/members/{member_id}

Remove member from company

Removes a member from the company. Only company owners can remove members. Cannot remove the company owner.

Request

DELETE /v1/companies/{company_id}/members/{member_id}

Parameters

[ { "schema": { "type": "string" }, "required": true, "name": "company_id", "in": "path" }, { "schema": { "type": "string" }, "required": true, "name": "member_id", "in": "path" } ]

Response

{ "200": { "description": "Member removed successfully", "content": { "application/json": { "schema": { "type": "object", "properties": { "success": { "type": "boolean" }, "message": { "type": "string" } }, "required": [ "success", "message" ] } } } }, "403": { "description": "Only company owners can remove members or cannot remove company owner" }, "404": { "description": "Member not found" } }

View in Interactive API Reference