The AWX API, which can be used to create the inventory is missing the parameter instance group in the document. I want to assign the instance group for the inventory when its created. Using the API’s there is no option to pass this details.
Hi, try POST ing request to /api/v2/inventories/{id}/instance_groups/ after initial creation of new inventory.
POST
/api/v2/inventories/{id}/instance_groups/
Thank you @kurokobo , i had to make the second API call as you suggested and it works.