Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
I meant changing the management vlan from the AP settings itself. Me as well, don't see any APIs to change that. So, your solution is the best at the moment.