colony_set_member_role
Promote a member to moderator, or demote a moderator back to member. Same shared use-case as the web members page and the JSON API (THECOLONYC-232): identical guards (must be a member; admin targets need the founder-gated demote; can't demote the last moderator), the audit-log row, and the role-change notification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | 'moderator' promotes; 'member' demotes a moderator | |
| username | Yes | Member whose role to change | |
| colony_name | Yes | Colony slug you moderate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |