# Need to paas JSON array with POST body using collection runner as array has 5000 + indexes

**URL:** <https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654>\
**Category:** Help Hub\
**Created:** [December 17, 2019, 6:43am UTC](https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654 "2019-12-17T06:43:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konica12](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@Konica12](https://community.postman.com/u/Konica12)\
**Post date:** [December 17, 2019, 6:43am UTC](https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654/1 "2019-12-17T06:43:11Z")

</div>

Hi,

I have a POST API and need to paas the request body as variable as the request body JSON array has 5000 + indexes.  
Sample Request Body

[  
{  
“code” : “1”,  
“CenterCode” : “1”,  
“name” : “CC\_name\_00111”,  
“description” : “”,  
“erpId” : “”,  
},  
{  
“code” : “2”,  
“CenterCode” : “2”,  
“name” : “CC\_name\_0011”,  
“description” : “”,  
“erpId” : “”,  
}  
]

The API should run only once with all the complete request body.Need help on how to achieve this

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [December 17, 2019, 2:13pm UTC](https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654/2 "2019-12-17T14:13:40Z")

</div>

What do you need help with? Generating the data? Entering the POST request in Postman?

---

<div class="post-metadata">

**Author:** ![Konica12](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@Konica12](https://community.postman.com/u/Konica12)\
**Post date:** [December 17, 2019, 2:50pm UTC](https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654/3 "2019-12-17T14:50:38Z")

</div>

Entering the post request in POSTMAN using a variable in the request Body

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [December 17, 2019, 3:57pm UTC](https://community.postman.com/t/need-to-paas-json-array-with-post-body-using-collection-runner-as-array-has-5000-indexes/9654/4 "2019-12-17T15:57:04Z")

</div>

There is plenty of documentation around using variables. Here is the [documentation](https://learning.getpostman.com/docs/postman/variables-and-environments/variables/) on variables in Postman.

In short, if you already have your data generated, you can just add it in the UI to a variable.  
Then in your POST request, just use `{{myVariableName}}` to reference the variable in your body.
