Rest Api "multipart/form-data"

Rest Api "multipart/form-data"


How can I convert this content to outsystems rest api

Accept: application/json

Content-Type: multipart/form-data; boundary=AAA



Content-Type: application/json

Content-Disposition: form-data



  "emailBlurb":"Test Email Body",

  "emailSubject": "Test Email Subject - EnvelopeDefFull",

  "documents": [{

      "name": "test1.pdf",




  "recipients": {

    "signers" : [{

      "email": " ",

      "name": "Mike Rosey",






Content-Type: application/pdf

Content-Disposition: file; filename="test1.pdf";documentid=1


<documents removed>



You need to have a single definition, so include the PDF into the form data.
Hi Ozkan,

There are some examples like that in the forge. Try checking the Box or the Dropbox components, pretty sure one of them need it as well.
Multipart requests are not out-of-the-box, they need to be done using the OnBeforeRequest or OnBeforeRequestAdvanced callbacks to change the body binary directly.

João Rosado

I had this exact question and found the example João Rosado mentioned in the Box connector (

This connector's FileUpload method can be copied and adapted for other multipart/form-data scenarios.