Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

multipart/form-data being sent as text/plain regardless of the content-type settings

shivmano
Regular Contributor III
Regular Contributor III

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]
}
}]
}

 

shivmano_0-1683552115143.png

 

3 REPLIES 3

SB
Saviynt Employee
Saviynt Employee

Sending multipart/form-data might not be currently supported. Let me though confirm this and update you.


Regards,
Sahil

shivmano
Regular Contributor III
Regular Contributor III

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 

SB
Saviynt Employee
Saviynt Employee

Can you confirm if this was resolved or if you are still facing the issue.


Regards,
Sahil