Based on an OpenAPI v2 definition of the CreateAndImportDocument API I have created a custom connector in Azure Logic Apps. The creation of the document works fine, but I fail on the upload (i.e. patch) step.
The raw input shows
"body": {
"FileData":"......."
...however the API seems to only expect the raw file as body. Have changed the swagger definition of the filedata parameter to file, but still my input looks something like this:
  "body": {
      "$content-type": "multipart/form-data",
      "$multipart":Â
           {
              "body": {
                  "$content-type": "image/jpeg",
                  "$content": "..............."
               },
              "headers": {
                  "Content-Disposition": "form-data; name=\"FileData\""
               }
           }
       ]
   }
IFS Cloud response:
{
"code": "UNSUPPORTED_CONTENT_TYPE",
"message": "The content type 'multipart/form-data;boundary=\"d2956e58-622f-4b26-bbdf-55b61f018754\"' is not supported."
}
I didn’t find a different way of sending my file content as request body. Anyone any idea how to solve this?