24-07-19 10:41 PM
Answered! Go to Answer.
23-04-21 08:12 AM
26-07-21 01:51 AM
28-04-22 10:10 AM
28-04-22 12:04 PM
05-05-22 08:13 AM
29-03-23 03:51 PM
curl -X 'POST' \
'https://URL/upload' \
-H 'accept: */*' \
-H 'Authorization: Bearer CODEOFBEARER' \
-H 'Content-Type: multipart/form-data' \
-F 'trust=12' \
-F 'file=@Trust.xlsx;type=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
------------------------------------------------------------------------
Can any one generate the template of Body content of the about API.
trust is a integers, File is a excel.
Thank you
29-03-23 04:20 PM
I was able to send a document using multipart form, but it was by using the newer Utility - Http object.
There is a HTTP Request Multipart action in that object, and you just need to supply two collections :
Field Metadata contains the details of the file ("name" and "value").
File Metadata would contain the actual file (enter the API's accepted field name for the file in the "FieldName" column, use the file's path in the "FilePath" column, and in the "FileContentType" you should use "application/octet-stream" in order to successfully upload the file.
Hope this would help.
03-04-23 05:16 PM
I have tried with the VBO:- Utility - HTTP 10.0.0, Action - HTTP Request Multipart as per the instructions in the Blue Prism community: https://community.blueprism.com/discussion/web-api-services-to-upload-a-file-using-multipart-form-data