Issue link: https://github.com/ansible/ansible/issues/39143 Correct post_body made by replacing host_type with hostType while creating host.