Hi,
I am trying to extract documents from SharePoint and pass them to the REST API, which takes the files as input. I am facing challenges in specifying the body. Getting an error: Unsupported media type. Same is working fine from POST Man. Please help
Even I tried the below.
{
"method": "POST",
"url": "https://azureblobuploaddemo.azurewebsites.net/api/AzureBlob",
"headers": {
"Content-Type": "multipart/form-data"
},
"body": {
"$multipart": [
{
"name": "file",
"filename": "textfile.txt",
"body": {
"$content": "This is the content of the text file.",
"$content-type": "text/plain"
}
}
]
}
}