# How to add more objects into an array

**URL:** <https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794>\
**Category:** Help Hub\
**Tags:** array\
**Created:** [August 16, 2021, 5:57pm UTC](https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794 "2021-08-16T17:57:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![x9stuido](https://avatars.discourse-cdn.com/v4/letter/x/ccd318/32.png) [@x9stuido](https://community.postman.com/u/x9stuido)\
**Post date:** [August 16, 2021, 5:57pm UTC](https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794/1 "2021-08-16T17:57:43Z")

</div>

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
I’ve successfully gotten data from one contentid, but I got an error message when I try add additional contentid into an an array.

What is the proper way to do this? Thanks

_Details (like screenshots)_:

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/7/712405401e0b8d769158bc5e2c92f39a30adc206.png)

Error

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/1/1711749138f95537970d6857273da926176bf7f0.png)

---

<div class="post-metadata">

**Author:** ![vikram.sahu](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/vikram.sahu/32/5449_2.png) [@vikram.sahu](https://community.postman.com/u/vikram.sahu)\
**Post date:** [August 17, 2021, 6:05am UTC](https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794/2 "2021-08-17T06:05:18Z")

</div>

Hello @x9stuido,

After considering the screenshot, here are the possible issue/solution that can help you debug:

1. Screenshot A you are passing _string as a value_ to the **contentId** which works but in Screenshot B you are passing _array as a value_

- Q: Does the function within your API has the ability to handle array as a value?  
Sol :
  - check for the function at your endpoint where you are sending the value of contentId.
  - If you have handled the array as a value try adding logs to your server to get more details while parsing.

1. Error image shows that the request has successfully reached to your designation server but it is unable to parse the JSON request that you have posted due to which the server is returning a **500 Internal Server Error**

I hope this fixes your issue.

Thanks

---

<div class="post-metadata">

**Author:** ![x9stuido](https://avatars.discourse-cdn.com/v4/letter/x/ccd318/32.png) [@x9stuido](https://community.postman.com/u/x9stuido)\
**Post date:** [August 18, 2021, 1:20am UTC](https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794/3 "2021-08-18T01:20:26Z")

</div>

Thank you very much for the inputs. I’m very new to all this and just passed this info to the their tech support. Wish me luck.

---

<div class="post-metadata">

**Author:** ![x9stuido](https://avatars.discourse-cdn.com/v4/letter/x/ccd318/32.png) [@x9stuido](https://community.postman.com/u/x9stuido)\
**Post date:** [August 18, 2021, 4:55pm UTC](https://community.postman.com/t/how-to-add-more-objects-into-an-array/26794/4 "2021-08-18T16:55:43Z")

</div>

It turns out they only allow one contentId per call.
