All Classes Pages
CreateCustomerNoteExamples Class Reference

More...

Detailed Description

Examples for Create customer note

Example 1 - Create a customer note

This example demonstrates the following:

  • Creating of a note for a customer.

XML

Request

Method URL
POST /ws/v12/interaction/customer/1001/note

Request headers

Name Value
X-egain-session Valid session ID
Accept application/xml
Content-Type application/xml
Accept-Language en-US

Request body

<note
    xmlns="http://bindings.egain.com/ws/model/v12/gen/interaction/notes">
    <content>KYC details of customer need to be updated first before entertaining any request.</content>
</note>

Response
HTTP/1.1 201 Created

Response headers

Name Value
X-egain-session current session ID
Content-Type application/xml
Location /ws/v12/interaction/customer/1001/note/1528

     


JSON

Request

Method URL
POST /ws/v12/interaction/customer/1001/note

Request headers

Name Value
X-egain-session Valid session ID
Accept application/json
Content-Type application/json
Accept-Language en-US

Request body

{
 "content": "KYC details of customer need to be updated first before entertaining any request."
}

Response
HTTP/1.1 201 Created

Response headers

Name Value
X-egain-session current session ID
Content-Type application/json
Location /ws/v12/interaction/customer/1001/note/1524