You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Error while trying to access the Chat REST API

edited Feb 13, 2019 4:44PM in Communication Channels 4 comments

Summary

OSC-CREST-00006 while trying to access establishSessions

Content

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"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!