How to add new parameter to a array in json payload for a request ?

  • I am trying to add a new parameter to a incoming json payload. I don't want to disturb existing payload but i need to add a new parameter for one of the array in request payload.
0 2 768
2 REPLIES 2

An example of what you are sending in the request and what you want Apigee to add to get the final request state would help us...

Not applicable

This is the link that will help.

https://stackoverflow.com/questions/23208674/add-new-attribute-dynamically-to-the-existing-json-arra...

You can use similar logic in javascript policy and set new payload to request.content flow variable.