MediaWiki:Apihelp-userrights-example-user

Add user FooBot to group bot, and remove from groups sysop and bureaucrat.