Hi,
I am trying to create/update a Job template in Ansible tower using API, everything is working great, but it’s not including the credentials what was passed as payload.
even the update is not working(I tried PATCH and PUT). I am trying to add a pre-existing credential to my job template.
Below is the curl command to update.
curl -X PATCH --user admin:admin123 --insecure -H ‘Content-Type: application/json’ “https://tower1.xx.example.opentlc.com/api/v2/job_templates/12/” -d “{"credentials":2}”
Any help will be highly appreciated.
Regards,
Kamlendu