How to create Category/Group through API

See Reverse engineer the Discourse API