Jump to: navigation, search

AddComment

This operation is part of the Chat API section of the Web Services API.

Overview

This sets a comment for the specified chat.

Request URL /api/v2/me/chats/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName AddComment
comment A string value to be used for the chat comment.

Sample

Request

POST api/v2/me/chats/0000Na9B26EF003M 
 
{
  "operationName": "AddComment", 
  "comment": "Some chat comment text"
}

Response

{
  "statusCode": 0
}

Notification

{
    "referenceId": 34,
    "chat": {
        "participants": [
            {
                "nickname": "TestName",
                "type": "Agent",
                "participantId": "009052C73228006D"
            },
            {
                "nickname": "FirstL",
                "type": "Customer",
                "participantId": "009052C73223006B"
            }
        ],
        "state": "Chatting",
        "id": "0000Na9B26EF003M",
        "capabilities": [
            "Transfer",
            "Complete",
            "Leave",
            "InFocus",
            "SendMessage",
            "SendStartTypingNotification",
            "SendStopTypingNotification"
        ],
        "comment": "Some chat comment text",
        "uri": "http: //localhost:8080/api/v2/chats/0000Na9B26EF003M"
    },
    "notificationType": "PropertiesUpdated",
    "messageType": "ChatStateChangeMessage"
}
This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!