HTTP Request - POST

Hi Team,

I have below request:
curl -X POST “https://api.everbridge.net/rest/uploads/892807736728829?uploadMethod=PARTIAL” -H “accept: application/json” -H “Authorization: a29uZ3Rlbmc6UGEkJHcwcmQ=” -H “Content-Type: multipart/form-data” -F “file=@nnn.csv;type=application/vnd.ms-excel”

I want to usi http request activity to do the same. Below is a snapshot of it:
URL: https://api.everbridge.net/rest/uploads/892807736728829
Parameter: uploadMethod = WITH_RECORD_TYPE

Simple http authentication in which I am giving the user id and pwd.

Attaching a csv file as attachment

Accept Format: JSON
Method: POST

Issue: I am unable to upload the file. Please suggest

The above issue has been solved.

Hi @Juveria

Can you explain what did you do

Thanks
Ashwin S

Hi Ashwin,

In my case , if you see the curl req, the variable name that I should use to upload file is “file”, any other variable name will not upload the file
A short description for the request would be as below:
URL
parameter: upload method
Basic http authentication.
Attachment, is the csv file with exact same variable name as mentioned in curl expression.

Hi @Juveria

Have you uploaded the file through http request activity or invoke method

Thanks
Ashwin S

Yes I did

how did u post FILE using http request?? can u explain and attach the Request builder screenshot or xaml for the same

Could you please tell me how you resolve this issue?