Leveraging Intelligent Recommendations for Operational Transformation. AMS Partners click HERE | EMEA/APJ Partners click HERE |
11/22/2023
01:12 AM
- last edited on
11/22/2023
02:07 AM
by
Sunil
DisableAccountJSON
{
"call": [
{
"name": "DisableAccount",
"connection": "acctAuth",
"showResponse" :true,
"url": "https://${connection.hosturl}/CxRestAPI/auth/Users/51",
"httpMethod": "PUT",
"httpParams":"{\"firstName\":\"Rushikesh\",\"lastName\":\"xxxxx\",\"email\":\"Rushikesh.xxxxx@removed.com\",\"teamIds\": \"[1]\", \"localeId\": \"1\",\"active\":\"true\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"accept": "*/*",
"Content-Type": "application/json-patch+json"
},
"httpContentType": "application/json-patch+json",
"successResponses": {
"statusCode": [
200,
204
]
}
}
]
}
Logs:
Solved! Go to Solution.
11/22/2023 10:04 PM
@Shilpa_B Are you able to disable the account in postman ?if yes please share the headers and response scree shot
Also check the highlighted fields in JSON
to disable the account "active\":\"false\"
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse" :true,
"url": "https://${connection.hosturl}/CxRestAPI/auth/Users/51",
"httpMethod": "PUT",
"httpParams":"{\"firstName\":\"Rushikesh\",\"lastName\":\"xxxxx\",\"email\":\"Rushikesh.xxxxx@removed.com\",\"teamIds\": \"[1]\", \"localeId\": \"1\",\"active\":\"true\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"accept": "*/*",
"Content-Type": "application/json-patch+json"
},
"httpContentType": "application/json-patch+json",
"successResponses": {
"statusCode": [
200,
204
]
}
}
]
}
11/22/2023
11:49 PM
- last edited on
11/23/2023
12:43 AM
by
Sunil
Hi @SumathiSomala,
Yes I am able to disable account from postman.
[This message has been edited by moderator to mask email address from an image. Please make sure to edit/mask any PII/sensitive info from public forum posts]
12/07/2023 09:14 AM
Connection JSON was not generating token
fixed httpHeaders in connectionJSON resolved the issue.