I am able to create a host in AWX with the REST API but haven't found out how to associate that host to a group via the REST api. (The groups have already been created via the GUI). Wondering how to add the group to the host via the REST API. using python:
PAYLOAD = {
'name': "myHost",
'inventory': "myInventory",
'description': "This is my awesome host."
}
r = requests.post(url=host_URL, data=json.dumps(PAYLOAD), headers={'content-type': 'application/json'})