# Scheduling a ansible workflow using REST API

**URL:** <https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 1, 2019, 8:45am UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465 "2019-06-01T08:45:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [June 1, 2019, 8:45am UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465/1 "2019-06-01T08:45:58Z")

</div>

Dear All,

I wanted to schedule my AWX workflow from backend using REST Api, I see there are good documentation, I am looking for an sample script to schedule a workflow and make it run once.

Any help would be appreciated.

Thank you. Regards  
Nilesh

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [June 2, 2019, 1:01pm UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465/2 "2019-06-02T13:01:01Z")

</div>

Perform the operation via the UI and watch the chrome networking tab for the API requests issued. The UI is a consumer of the API. You should be able to repeat that process with requests/URI/automation.

---

<div class="post-metadata">

**Author:** ![klaasdemter](https://avatars.discourse-cdn.com/v4/letter/k/3bc359/32.png) [@klaasdemter](https://forum.ansible.com/u/klaasdemter)\
**Post date:** [June 2, 2019, 6:26pm UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465/3 "2019-06-02T18:26:45Z")

</div>

[https://github.com/redhat-cop/infra-ansible/tree/master/roles/ansible/tower/manage-workflow-templates](https://github.com/redhat-cop/infra-ansible/tree/master/roles/ansible/tower/manage-workflow-templates)

parts should be covered here

---

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [June 2, 2019, 11:45pm UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465/4 "2019-06-02T23:45:21Z")

</div>

Thank you all for the pointers.  
That should help and keep me going. I see different rrule in the documentation example, but I do not see run once which I can see from UI, am I missing something.?

---

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [June 3, 2019, 12:10pm UTC](https://forum.ansible.com/t/scheduling-a-ansible-workflow-using-rest-api/30465/5 "2019-06-03T12:10:51Z")

</div>

Got the information using inspect from UI.
