Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/02/2024 07:01 AM
Hi i am using the below updateAccount JSON.
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xyz/Users/${account.customproperty5}",
"httpMethod": "PATCH",
"httpParams": "{\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\": \"remove\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq , \"EXP_PROCESSOR_AUDIT\"]}]}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
404,
500,
501,
502,
503,
504
]
}
}
]
}
but i am getting the below Error.
176]","status":"Failed"}]},"call1":{"message":"Unexpected character ('E' (code 69)): was expecting comma to separate Object entries\n at [Source: {\"schemas\":[\"urn:ietf:params:scim:api:messages:2.0:PatchOp\"],\"Operations\":[{\"op\": \"remove\",\"path\":\"urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq , \"EXP_PROCESSOR_AUDIT\"]}]}; line: 1, column: 176]","status":"Failed"}}
I have tried with putting comma (,) as well after h eq operator but still its not working out.
07/02/2024 11:23 AM - edited 07/02/2024 11:24 AM
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xyz/Users/${account.customproperty5}",
"httpMethod": "PATCH",
"httpParams": {
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "remove",
"path": "urn:ietf:params:scim:schemas:extension:spend:2.0:Role:roles[roleName eq \"EXP_PROCESSOR_AUDIT\"]"
}
]
},
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [200]
},
"unsuccessResponses": {
"statusCode": [400, 401, 404, 500, 501, 502, 503, 504]
}
}
]
}