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

Getting Status 415 in a REST call

Suresh1
New Contributor III
New Contributor III

Hello Team,

I'm trying to make a call to one of the API's which is used to de-assign the roles. But i'm getting a status code 415 with error message "Unsupported Media Type"

FYI- This call is successful in Postman, but same is not working in Saviynt.

Below is my json & postman payload

{
"call": [
{
"name": "Groups",
"connection": "acctAuth",
"url": "https://<URL>/${account.accountID}",
"httpMethod": "DELETE",
"httpParams": "[{\"id\": ${entitlementValue.entitlementID}}]",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

Suresh1_0-1718305793523.png

 

 

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

{
"call": [
{
"name": "Groups",
"connection": "acctAuth",
"url": "https://<URL>/${account.accountID}",
"httpMethod": "DELETEWITHBODY",
"httpParams": "[{\"id\": ${entitlementValue.entitlementID}}]",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "*/*"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]


Regards,
Rushikesh Vartak
If you find this response useful, kindly consider selecting 'Accept As Solution' and clicking on the 'Kudos' button.

Suresh1
New Contributor III
New Contributor III

@rushikeshvartak , Thank you for the help, this worked.

"httpMethod": "DELETEWITHBODY",