and more in a single search tool across platforms. Read the announcement here. |
05/08/2023 06:25 AM
Hi Team -
I have a requirement to send a multipart request to an application that only accepts form-data. I am observing that when I send the data as multipart/form-data being the Content Type, it is being sent as text/plain. Please can someone advise how this can be controlled? I need this to be sent as application/json instead. I have tried changing the content type to application/json and changing few things with the header values too but none of them seem to work. Below is the JSON and the data being sent from Saviynt
{
"accountIdPath": "accountName",
"call": [{
"name": "call1",
"connection": "userAuth",
"url": "*********",
"httpMethod": "POST",
"httpParams": "{\"ParameterRequest\": \"documentName\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "multipart/form-data",
"successResponses": {
"statusCode": [200, 201, 202]
},
"unsuccessResponses": {
"statusCode": [400, 401, 403, 404, 408, 412, 500]
}
}]
}
05/08/2023 09:10 AM
Sending multipart/form-data might not be currently supported. Let me though confirm this and update you.
05/09/2023 12:03 AM
Thanks @SB . Please let me know if this is supported or not and if there is a workaround to sending a multipart/form-data. Unfortunately, I have not been able to find any information about this on Saviynt documentations. Also, I have seen data being sent as multipart/form-data in documentation only during establishing connection
https://docs.saviyntcloud.com/bundle/REST-v2021x/page/Content/Developers-Handbook.htm#top
06/08/2023 09:36 AM
Can you confirm if this was resolved or if you are still facing the issue.