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

InContact - DisableAccountJson giving error message

myasin
New Contributor
New Contributor

Hi,

Getting the below error when trying to use the default InContact createAccountJson included with the package. Any assistance would be greatly appreciated.

{"call1":{"headers":null,"message":{"error":"invalid_request","error_description":"Invalid agents - Property 'agents' has not been defined and the schema does not allow additional properties."},"statusCode":400,"description":null,"status":"Failed"}}


{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": true,
"url": "https://api-na1.niceincontact.com/inContactAPI/services/v29.0//agents/${account.accountID}",
"httpMethod": "PUT",
"httpParams": "{\"agents\":[{\"isActive\":false}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

3 REPLIES 3

SumathiSomala
All-Star
All-Star

@myasin Is url used in the JSON is correct?

 "https://api-na1.niceincontact.com/inContactAPI/services/v29.0//agents/${account.accountID}",

// used in URL.

"httpParams": "{\"agents\":[{\"isActive\":\"false\"}]}",

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

@myasin try below

"httpParams": "{\"isActive\":\"false\"}",

 

 

 

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"showResponse": true,
"url": "https://api-na1.niceincontact.com/inContactAPI/services/v29.0/agents/${account.accountID}",
"httpMethod": "PUT",
"httpParams": "{\"isActive\":\"false\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

also did you try in postman?

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.