# How do I update the object of the response

**URL:** <https://community.postman.com/t/how-do-i-update-the-object-of-the-response/64508>\
**Category:** Help Hub\
**Tags:** tests, scripts, json\
**Created:** [July 24, 2024, 12:10pm UTC](https://community.postman.com/t/how-do-i-update-the-object-of-the-response/64508 "2024-07-24T12:10:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashishekhar710](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@shashishekhar710](https://community.postman.com/u/shashishekhar710)\
**Post date:** [July 24, 2024, 12:10pm UTC](https://community.postman.com/t/how-do-i-update-the-object-of-the-response/64508/1 "2024-07-24T12:10:35Z")

</div>

I need to update the object of the response which is under an array and then need to use use it as body for next request through automation.

```auto
"entityItemList": [
                {
                    //here i need to add one filed, at top
                    "closingEffectiveDate": "3000-01-01",
                    "closingReference": "",
                    "closingRegistrationDate": "3000-01-01",
                    "closingStatus": 0,
                    "entityFieldType": 5,
                    "entityFieldTypeName": "DropDownListBox",
                    "entityFourthSubType": 1,
                    "entityMainTypeName": "Group",
                    "entityName": "Source",
                    "entityNo": 123,
                    "entitySecondSubType": 0,
                    "entitySubNo": 3,
                    "entitySubType": 50,
                    "entityThirdSubType": 5006,
                    "entityType": 8,
                    "entityTypeName": "Plan",
                    "id": 5,
                    "manualFlag": true,
                    "openingEffectiveDate": "2023-10-18",
                    "openingReference": "2075",
                    "openingRegistrationDate": "2023-10-18",
                    "openingStatus": 10,
                    "openingStatusName": null,
                    "referenceUniqueId": null,
                    "rowNumber": 0,
                    "semanticId": null,
                    "uniqueId": 507,
                    "value": "1",
                    "valueName": "CoreSuite"
                }

```

I have this in my response from one of the request and i need to add one/multiple field under this object which is under an array and then need to use the updated body in another request through automation.

This is sample body, i need to update multiple fields in multiple object which are under array.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [August 24, 2024, 10:02am UTC](https://community.postman.com/t/how-do-i-update-the-object-of-the-response/64508/3 "2024-08-24T10:02:38Z")

</div>

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