# Missing Credential in Job Template API Payload AWX 7.0.0.0

**URL:** <https://forum.ansible.com/t/missing-credential-in-job-template-api-payload-awx-7-0-0-0/33225>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 21, 2020, 5:02am UTC](https://forum.ansible.com/t/missing-credential-in-job-template-api-payload-awx-7-0-0-0/33225 "2020-06-21T05:02:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich\_z](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@rich\_z](https://forum.ansible.com/u/rich_z)\
**Post date:** [June 21, 2020, 5:02am UTC](https://forum.ansible.com/t/missing-credential-in-job-template-api-payload-awx-7-0-0-0/33225/1 "2020-06-21T05:02:10Z")

</div>

Hello,

We recently migrated from AWX 1.0.8.0 to AWX 7.0.0.0.

We had a job that used the Tower API endpoint to create a template and the payload example was like below with Credential as one of the keys and :

**AWX 1.0.8.0**

{  
“name”: “”,  
“description”: “”,  
“job\_type”: “run”,  
“inventory”: null,  
“project”: null,  
“playbook”: “”,  
“forks”: 0,  
“limit”: “”,  
“verbosity”: 0,  
“extra\_vars”: “”,  
“job\_tags”: “”,  
“force\_handlers”: false,  
“skip\_tags”: “”,  
“start\_at\_task”: “”,  
“timeout”: 0,  
“use\_fact\_cache”: false,  
“host\_config\_key”: “”,  
“ask\_diff\_mode\_on\_launch”: false,  
“ask\_variables\_on\_launch”: false,  
“ask\_limit\_on\_launch”: false,  
“ask\_tags\_on\_launch”: false,  
“ask\_skip\_tags\_on\_launch”: false,  
“ask\_job\_type\_on\_launch”: false,  
“ask\_verbosity\_on\_launch”: false,  
“ask\_inventory\_on\_launch”: false,  
“ask\_credential\_on\_launch”: false,  
“survey\_enabled”: false,  
“become\_enabled”: false,  
“diff\_mode”: false,  
“allow\_simultaneous”: false,  
“custom\_virtualenv”: null,  
“credential”: null,  
“vault\_credential”: null  
}

**On migrating to the AWX 7.0.0.0, we no longer see an option to pass credential/vault with the payload. See example below of the available payload options.**  
**Can someone please suggest what would be the new way if we want to call the tower create job template API and add credentials to the template at time of creation?**

AWX 7.0.0.0

{  
“name”: “”,  
“description”: “”,  
“job\_type”: “run”,  
“inventory”: null,  
“project”: null,  
“playbook”: “”,  
“scm\_branch”: “”,  
“forks”: 0,  
“limit”: “”,  
“verbosity”: 0,  
“extra\_vars”: “”,  
“job\_tags”: “”,  
“force\_handlers”: false,  
“skip\_tags”: “”,  
“start\_at\_task”: “”,  
“timeout”: 0,  
“use\_fact\_cache”: false,  
“host\_config\_key”: “”,  
“ask\_scm\_branch\_on\_launch”: false,  
“ask\_diff\_mode\_on\_launch”: false,  
“ask\_variables\_on\_launch”: false,  
“ask\_limit\_on\_launch”: false,  
“ask\_tags\_on\_launch”: false,  
“ask\_skip\_tags\_on\_launch”: false,  
“ask\_job\_type\_on\_launch”: false,  
“ask\_verbosity\_on\_launch”: false,  
“ask\_inventory\_on\_launch”: false,  
“ask\_credential\_on\_launch”: false,  
“survey\_enabled”: false,  
“become\_enabled”: false,  
“diff\_mode”: false,  
“allow\_simultaneous”: false,  
“custom\_virtualenv”: null,  
“job\_slice\_count”: 1  
}

thanks  
Rich
