All Classes Pages
CreateActivityNoteExamples Class Reference

More...

Detailed Description

Examples for Create Activity Note

Example 1 - Create an activity note

This example demonstrates the following:

  • Creating a note for an activity.

XML

Request

Method URL
POST /ws/v12/interaction/activity/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>Customer has not got cashback till now. We need to check with concerned bank</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/activity/1001/note/1523

JSON

Request

Method URL
POST /ws/v12/interaction/activity/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": "Customer has not got cashback till now. We need to check with concerned bank"
}

Response
HTTP/1.1 201 Created

Response headers

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