E018: Remove user from organization
DELETE /api/organizations/current/members/:userId
Revokes a member's access to the organization. Triggered from Settings, Users.
Authentication
Standard tenant route. Requires Authorization: Bearer <firebase-id-token> and X-Org-Id: <org-id>. Access: Owner.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Echo of the deleted user's id.
Errors
| HTTP | code | Condition |
|---|---|---|
| 404 | not_found | No such member in this org. |
| 403 | forbidden | Caller is not the org owner. |
| 409 | invalid_transition | Removing the sole owner. |