# Auto POST JSON file to API end point in schedule interval

**URL:** <https://community.cdata.com/t/auto-post-json-file-to-api-end-point-in-schedule-interval/923>\
**Category:** CData Arc\
**Tags:** question, api\
**Created:** [October 24, 2024, 2:07am UTC](https://community.cdata.com/t/auto-post-json-file-to-api-end-point-in-schedule-interval/923 "2024-10-24T02:07:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pradeep](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Pradeep](https://community.cdata.com/u/Pradeep)\
**Post date:** [October 24, 2024, 2:07am UTC](https://community.cdata.com/t/auto-post-json-file-to-api-end-point-in-schedule-interval/923/1 "2024-10-24T02:07:53Z")

</div>

Hi Team,

I have a requirement, where i have a standard JSON body which need to be post every 10 mins to API endpoint , as response to post i will be getting the Orders payload from partner’s API.

Need your expertise, help me to post this one JSON file over & over again to the API as input file.

below is the JSON body to be posted.

{

“app\_id”: “RDCSBY01”

}

---

<div class="post-metadata">

**Author:** ![lohith](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/lohith/32/1848_2.png) [@lohith](https://community.cdata.com/u/lohith)\
**Post date:** [October 24, 2024, 5:24am UTC](https://community.cdata.com/t/auto-post-json-file-to-api-end-point-in-schedule-interval/923/2 "2024-10-24T05:24:17Z")

</div>

Hi Pradeep,

Here is the script that generates the required static JSON file:

```auto
<arc:set attr="output.data">
{
  "app_id": "RDCSBY01"
}
</arc:set>
<arc:set attr="output.filename" value="JsonOut.json" />
<arc:push item="output"/>

```

You can configure this in a dedicated script connector and set the receive automation to trigger every 10 minutes.

---

<div class="post-metadata">

**Author:** ![Pradeep](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@Pradeep](https://community.cdata.com/u/Pradeep)\
**Post date:** [October 25, 2024, 12:54am UTC](https://community.cdata.com/t/auto-post-json-file-to-api-end-point-in-schedule-interval/923/3 "2024-10-25T00:54:57Z")

</div>

hi Lohith,

Once again with your expertise, right solution for my request.

Thank you really much appreciate your help.
