AWX API for Inventory Creation

,

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.

2 Likes

Thank you @kurokobo , i had to make the second API call as you suggested and it works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.