# Pass an inventory file using POST Payload

**URL:** <https://forum.ansible.com/t/pass-an-inventory-file-using-post-payload/9572>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [September 30, 2024, 4:11am UTC](https://forum.ansible.com/t/pass-an-inventory-file-using-post-payload/9572 "2024-09-30T04:11:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [September 30, 2024, 4:11am UTC](https://forum.ansible.com/t/pass-an-inventory-file-using-post-payload/9572/1 "2024-09-30T04:11:18Z")

</div>

Hi Experts

How can I inject an inventory JSON file to push into Templates dynamically inside AAP. now I sending the hostname using the limit parameter but if the host is not present inside the Inventory file of the template it is failing … pls let me know how to create/push the dynamic inventory…

---

<div class="post-metadata">

**Author:** ![Prady\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/prady_a/32/4792_2.png) [@Prady\_A](https://forum.ansible.com/u/Prady_A)\
**Post date:** [September 30, 2024, 4:42am UTC](https://forum.ansible.com/t/pass-an-inventory-file-using-post-payload/9572/2 "2024-09-30T04:42:08Z")

</div>

I found the solution… I post the hosts using api to the the template inventory… Just like I launch the template using Ansible API

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [October 30, 2024, 4:43am UTC](https://forum.ansible.com/t/pass-an-inventory-file-using-post-payload/9572/3 "2024-10-30T04:43:08Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
