Using parameters in a Request Body

Moderator: Support

thegamechanger
Posts: 2
Joined: Tue Feb 22, 2022 5:59 pm

Using parameters in a Request Body

Post by thegamechanger »

Hi Guys,

For the API I am calling, I need to include a Body Request to to do a find in the service. If I hard code the value, it works fine: e.g.

{
"query":[
{"Email": "==email@domain.com"}]
}

But if I try to use the "email" parameter I am passing into the call I keep getting errors ("Unexpected token P in JSON at position 33") :

{
"query":[
{"Email": PARAMS.QUERY.email}]
}

I am sure it is my syntax, but I can't figure it out.

PLLEEAASSE HELP!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: Using parameters in a Request Body

Post by Serhii Kulibaba »

Hello,

Where exactly do you pass these values to the body?
In your API Express service, REST component?

Could you please provide us with more details, screenshots or exact steps to reproduce this problem?

Post Reply