Send formdata parameter in API Post messgae

Hello Team,

Could you please share how to pass the formdata parameter while invoking an API . There is a need to send a file as a form-data parameter. Request to provide details on this query.

Hi,

Click on the setting button and configure the payload which you want to send along with API request.

In the payload you can replace the hard coded value of any key with argument

Regards,
Amit Anand

Hello Amit, So do I have to just send the file path as the value for the corresponding key?

Hi,

I am not able to get your use case. I am assuming you are calling an api
For ex : http://<machine>:<port>/changename which takes payload
{
“name” : “newname”
}

What i told is that you can replace hard coded value new name with an argument whose value can be passed dynamically

Hello Amit,

the below is the way the parameters are sent to the API via postman. I am trying to replicate the same via Assist edge. And I am not knowing how to send it as ‘form-data’ parameter, wherein the file needs to be uploaded.

Hi,

In your api is it possible to send data in raw json format. You can send key value in json format also.

Regards,
Amit Anand