Not able to create Ansible tower template job through an API call

Hi,

I am trying to make an API call using curl command from my unix box to create template job in Ansible tower with my logincredentials/token. I am getting error “You do not have permission to perform this action”.

However I am able to perform other POST actions like creating inventory, adding host to inventory and other GET api calls.

Below my code snippet. I tried with bearer token as well for the below run

curl -k -s -u $CREDENTIAL -X POST -H “Content-Type: application/json”
“https://{tower-url}/api/v2/organizations/{id}/job_templates/”
– data ‘{
“name”: “”
“job_type”: “”
“inventory”: “”
“project”: “”
“playbook”: “”
“verbosity”: “”
}’

I am not able to see any examples in google for creating a job template, but in the below ansible site APIs are present, https://docs.ansible.com/ansible-tower/latest/html/towerapi/api_ref.html#/

Is it possible to create job template via API?