Add the user with ID 123 to group bot, and remove from groups sysop and bureaucrat.
MediaWiki:Apihelp-userrights-example-userid
From FriendlyELEC WiKi
Add the user with ID 123 to group bot, and remove from groups sysop and bureaucrat.