# AWX API to create a new project with scm\_type git

**URL:** <https://forum.ansible.com/t/awx-api-to-create-a-new-project-with-scm-type-git/35164>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 13, 2021, 12:47am UTC](https://forum.ansible.com/t/awx-api-to-create-a-new-project-with-scm-type-git/35164 "2021-05-13T00:47:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kana\_Yabuno](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@Kana\_Yabuno](https://forum.ansible.com/u/Kana_Yabuno)\
**Post date:** [May 13, 2021, 12:47am UTC](https://forum.ansible.com/t/awx-api-to-create-a-new-project-with-scm-type-git/35164/1 "2021-05-13T00:47:29Z")

</div>

Hi all,

I’m running AWX 19.0.0 and I’m trying to create a new project with SCM\_type “git” via AWX API using python script.

I set the scm\_type as git in data like this below,

_data = {_  
_“name”: “second project”,_  
_“scm\_types”: “git”,_  
_“scm\_url”: “XXXXXXXXX”,_  
_“organization”: “2”,_  
_“timeout”: 10_  
_}_

_response = requests.post(url, auth=(user, pwd), headers=headers, json=data, verify=False)_

The response code is 201 and I can see a new project is created on AWX but the scm\_type is “manual” instead of “git”.

Could anyone help with this issue?

Regards,  
Kana Yabuno

---

<div class="post-metadata">

**Author:** ![David\_Safanyuk](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@David\_Safanyuk](https://forum.ansible.com/u/David_Safanyuk)\
**Post date:** [May 17, 2021, 5:19pm UTC](https://forum.ansible.com/t/awx-api-to-create-a-new-project-with-scm-type-git/35164/2 "2021-05-17T17:19:51Z")

</div>

should be scm\_type (singular)
