Error while trying to access the Chat REST API
Summary
OSC-CREST-00006 while trying to access establishSessionsContent
Hello,
I am trying to create a Chat REST Client based on the documentation .However, I am getting a 400 Bad Request Error.
Here is my request {slightly modified from the example}
POST /services/rest/crossChannelServices/latest/establishSessions HTTP/1.1
{
"sessionInformation": {
"emailAddress" : "john.smith@vision.com",
"firstName": "John",
"lastName": "Smith",
"question": "Blah",
"auxiliaryData": { "BROWSER" : "Firefox" }
}
}
Here is the response :-
{
"type": "https://<sitename>.custhelp.com/services/rest/crossChannelServices/exceptions/OSC-CREST-00006",
"title": "An attempt to write a resource failed",
"status": 400,
"detail": "A problem setting a property was encountered: not an object; EstablishSession.SessionInformation",
"instance": "https://<sitename>.custhelp.com/services/rest/crossChannelServices/latest/establishSessions"