Remove Unit Role
DELETE
/units/{unitId}/roles/{targetUserId}
Removes a user’s role assignment from a Unit. The Space must be active. Returns 404 if the assignment does not exist.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” unitId
required
string
targetUserId
required
string
Header Parameters
Section titled “Header Parameters ” X-Space-Id
required
string format: uuid
UUID of the target Space (tenant boundary). Validated against user access.
Responses
Section titled “ Responses ”Unauthorized — missing or invalid JWT
Forbidden — insufficient permissions
Resource not found