# Triggering approval using API - "ON HOLD"

**URL:** <https://discuss.circleci.com/t/triggering-approval-using-api-on-hold/30576>\
**Category:** Build Environment\
**Created:** [May 26, 2019, 12:13pm UTC](https://discuss.circleci.com/t/triggering-approval-using-api-on-hold/30576 "2019-05-26T12:13:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhaim](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@hhaim](https://discuss.circleci.com/u/hhaim)\
**Post date:** [May 26, 2019, 12:13pm UTC](https://discuss.circleci.com/t/triggering-approval-using-api-on-hold/30576/1 "2019-05-26T12:13:59Z")

</div>

Hi Experts, I’m new and couldn’t find the answer

Our project requires to run some tests on specific hardware (not in the Cloud).  
Let’s call this place **A** and CI (Cloud)  
**A** can access CI /Github(API) and CI can’t access **A** except a shared folder

We plan to do something like that:

CI1 - start a script that waits for file on share\_folder (for specific file)  
A1- Pool the jobs using CI API  
A2 - start doing the job ~2 hours  
A3 - publish the file into share\_folder  
CI1 - look for the file and publish the results

The question is could we put CI1 is state “ON\_HOLD” and A3 will trigger “approval” (API)  
Instead of CI to wait for the file for 2 hours? (event driven like)

Another thing, we would like to limit the number of active jobs to be 1 and the CI will be considered active in the state == “ON HOLD”.  
I know that CI don’t do much but the integration with Github (green/red) is important

thanks

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/drazisil/32/24029_2.png) [@drazisil](https://discuss.circleci.com/u/drazisil)\
**Post date:** [May 28, 2019, 1:22pm UTC](https://discuss.circleci.com/t/triggering-approval-using-api-on-hold/30576/2 "2019-05-28T13:22:56Z")

</div>

Hi Hanoh,

I don’t think we have a way to do this correctly, but it sounds very neat. Can I ask you to create a feature request here [https://ideas.circleci.com/](https://ideas.circleci.com/) with details of your flow and use case so we can get it in front of our product team?
