Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Adding a extra field with request payload?

Not applicable

Hi, I want to add one extra field to my request payload.

If my payload is:

{
"firstName":"ABC",
"lastName":"XXX"
}

I want to have my payload as like this:

{
"firstName":"ABC",
"lastName":"XXX",
"id":1
}

But, to do this, I want to extract all the variables and then I assign it to my payload.Instead of doing this, is there a easier way?

0 4 3,482
4 REPLIES 4