I have Ansible Tower API version: 3.7.0 and Ansible version: 2.9.13.
The documentation (attached image for reference) says that it supports a POST to api/v2/job_templates/id/launch/ in order to launch job template.
However, when I call to the POST mentioned above I am getting the same response as I get via GET request to job_templates endpoint.
Expectation:
I want POST to api/v2/job_templates/id/launch/ return HTTP 201 status code and execute the job.
Actual:
I see 200 HTTP status code containing the response body same as GET api/v2/job_templates/id/launch and without the job_template being executed.
Also notice that the GET on browser for Get api/v2/job_templates/id/ does not include the POST as an allowed method.


Based on your information provided I've performed a test under RHEL 7.9, Ansible Tower 3.7.3, Ansible v2.9.27.
First you need to get the correct ID for the job_template in question by calling in example
You may filter it further jquery.
Then, with
ID='1', aGETcallresults into the correct information
as well a
POSTcallwith result
Documentation