role_changed is emitted for the owner.memberId is required and is not validated up front; an unknown member returns 404.role accepts ADMIN, EDITOR or VIEWER. OWNER is rejected with 422.curl --location --request PUT 'https://api.zapmail.ai/api/v3/workspaces/members?memberId=e7a1b2c3-4d5e-4f60-8a9b-0c1d2e3f4a5b' \
--header 'x-auth-zapmail;' \
--header 'Content-Type: application/json' \
--data '{
"role": "ADMIN"
}'{
"status": 200,
"message": "Member role updated successfully",
"data": {
"id": "e7a1b2c3-4d5e-4f60-8a9b-0c1d2e3f4a5b",
"role": "ADMIN"
}
}