I want to manage the data manipulation into postman with mock server i.e. want to update the response of one api from another

My question:

i want to manage the data manipulation into postman with mock server

*Details *:

We have one api getBill returning the list of table let’s say initially we are returning the table response as follows.
[
{
“billId”: “ID11”,
“billTag”: “TABLE-11”,
“totalAmount”: 1100,
“userId”:“1810”,
“billDateTime”: “2021-03-11T11:11:11.000Z”,
“status”: “pending”,
“itemizedBill”: “Drinks £500\nFood £600\n------------------\nTotal £1100”,
“paymentDetails”:
},
{
“billId”: “ID12”,
“billTag”: “TABLE-12”,
“totalAmount”: 1200,
“userId”: “1810”,
“billDateTime”: “2021-03-11T12:12:12.000Z”,
“status”: “pending”,
“itemizedBill”: “Drinks £600\nFood £600\n------------------\nTotal £1200”,
“paymentDetails”:
}
]

now if user select the one table TABLE-12 and send the status of table from pending to in-progress using put api so now how can we update the above response which exist into another api dynamically like this.

[
{
“billId”: “ID11”,
“billTag”: “TABLE-11”,
“totalAmount”: 1100,
“userId”:“1810”,
“billDateTime”: “2021-03-11T11:11:11.000Z”,
“status”: “pending”,
“itemizedBill”: “Drinks £500\nFood £600\n------------------\nTotal £1100”,
“paymentDetails”:
}
]

How I found the problem:
my initial response is not updating

I’ve already tried:
i have tried some java script but nothing works