Unable to create group owner with API

Hi FLucas and welcome to meta.discourse.org :blob_wave:

By reverse-engineering the API, I understood that the usernames must be separated with a comma without space. If you’re trying to add multiple users at once, it may be your issue.

I tested with the following payload:

{
    "group": {
        "name": "test",
        "bio_raw": "test",
        "full_name": "test",
        "usernames": "Canapin,adan",
        "owner_usernames": "cristopher_klocko,Canapin"
    }
}

As a POST request to admin/groups.json, and it worked.