01-17-2023 09:14 PM
Hi Team, We have REST application - trying to remove entitlement using below JSON:
{
"accountIdPath": "accountName",
"call": [{
"name": "Entitlements",
"connection": "userAuth",
"httpMethod": "PATCH",
"url": "https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-management/v1/users/entitlements/${entitlementValue.entitle...}",
"httpParams": "{\"username\":\"${account.accountID}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"Content-Type": "application/json",
"successResponses": {
"statusCode": [
200,
201,
202,
203,
204
]
}
}]
}
Gives 200 response and Task is getting Completed. But its not removing from the target.
Same if I try in POSTMAN its removing from target.
please find POSTMAN screens
That means my JSON conversion has an issue ?
01-17-2023 09:16 PM
change account.accountID to account.name
01-17-2023 11:16 PM
i have tried changing to name but its not working, any other inputs
01-18-2023 04:28 AM
Does your entitlement type is correct ?
change entitlementid to entitlement_value