# How to update array parameter by using PATCH request

**URL:** <https://community.postman.com/t/how-to-update-array-parameter-by-using-patch-request/25044>\
**Category:** Help Hub\
**Created:** [June 20, 2021, 3:06pm UTC](https://community.postman.com/t/how-to-update-array-parameter-by-using-patch-request/25044 "2021-06-20T15:06:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lissiamsn](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@lissiamsn](https://community.postman.com/u/lissiamsn)\
**Post date:** [June 20, 2021, 3:06pm UTC](https://community.postman.com/t/how-to-update-array-parameter-by-using-patch-request/25044/1 "2021-06-20T15:06:41Z")

</div>

_My question_:

I’m testing the update of an entity. Its body has a next structure (I can’t use real data):

“name”: “Kate”,  
“number”: “3”,  
“FavoriteBook”: [  
{  
“id”: 1,  
“BookName”: “Dog&Cat”  
},  
{  
“id”: 2,  
“BookName”: “Rose”  
},  
]

How can I update “BookName” value in any “FavoriteBook” array by using PATCH request (I can’t use any other)?

---

<div class="post-metadata">

**Author:** ![pranavdavar](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/pranavdavar/32/9152_2.png) [@pranavdavar](https://community.postman.com/u/pranavdavar)\
**Post date:** [June 21, 2021, 3:32am UTC](https://community.postman.com/t/how-to-update-array-parameter-by-using-patch-request/25044/2 "2021-06-21T03:32:26Z")

</div>

Hi @lissiamsn,

It seems like favourite book api has values coming from actual book api. To update the name of a book you may need to call patch request for parent api. I believe, you may need to go through documentation for the APIs to find a way to achieve this.

---

<div class="post-metadata">

**Author:** ![lissiamsn](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@lissiamsn](https://community.postman.com/u/lissiamsn)\
**Post date:** [June 23, 2021, 3:37pm UTC](https://community.postman.com/t/how-to-update-array-parameter-by-using-patch-request/25044/3 "2021-06-23T15:37:14Z")

</div>

Thank you! We had a bug in the documentation, so this moment was not clear.
