Send Post Request to Restful API

Hey all

I have built a project that sends images to an API and gets back a JSON response, but I have been doing this by opening CMD and typing a command in the below format:

curl -X POST -F “image=@/path/example.png” http://URL/uploadform.cgi

sometimes the bot fails to scrape the response from the command shell. how can I send this request directly from UiPath?
I have tried using the HTTP request activity in studio but I do not know how to set it up correctly, I am new to APIs and HTTP requests.

Hi Senzo

You might try this solution if needed