Need Help: How to Provide a JSON Object as Payload Instead of Individual Properties

Hi Team,

I hope you’re doing well.

In my current use case, I need to send a payload containing values like searchType, searchUsing, and searchValue. As shown in the attached screenshot, we currently configure them as separate properties in the payload section.

However, I would like to know if there’s a way to configure the payload as a single JSON object instead—so that we can structure it like this:

{
    "searchType": "...",
    "searchUsing": "...",
    "searchValue": "..."
  }

Instead of configuring each property separately, is there a way to provide this as a JSON object directly in the payload configuration?

Appreciate your help and guidance on how this can be done.
Thank you in advance.

Regards,
Shamnad KS

3 Likes

Hi Team,

Just to update — it’s possible to structure the payload as a single JSON object in the Before Request code editor using:

params.options.body = {
  searchType: '...',
  searchUsing: '...',
  searchValue: '...'
};

4 Likes