Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/13/2024 12:16 PM
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
]
}
}
]
}
Solved! Go to Solution.
06/13/2024 08:40 PM
{
"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
]
06/14/2024 04:42 AM
@rushikeshvartak , Thank you for the help, this worked.
"httpMethod": "DELETEWITHBODY",