Jump to: navigation, search

Complete

This operation is part of the IM Session API section of the Web Services API.

Overview

Release the IM session.

Request URL /api/v2/me/im-sessions/{id}
HTTP Method POST
Required Features api-voice-instant-messaging

Parameters

Parameter Value
operationName Complete


Samples

Request

POST /api/v2/me/im-sessions/00446K0L8GAC3B9R8O7GK2LAES00000D
{
   "operationName": "Complete"
}

HTTP Response

{
   "statusCode": 0 
}

CometD Response

{  
   "messageType":"IMSessionStateChangeMessage",
   "notificationType":"StatusChange",
   "imSession":{  
      "state":"Completed",
      "userData":{  
         "User Data 1": "important data"
      },
      "id":"12398123091823091283012",
      "uri": "http://hpe-voicevm-64.genesyslab.com:8090/api/v2/im-sessions/00S4UMMDT8AHN1VL807GK2LAES000002", 
      "path":"/im-sessions/12398123091823091283012",
      "participants": [
         {
            "digits": "3002",
            "e164Number": "3002",
            "formattedPhoneNumber": "3002",
            "phoneNumber": "3002"
         }
      ],
      "capabilities":[  
         "Complete",
         "AttachUserData",
         "DeleteUserData",
         "UpdateUserData",
         "SendMessage"
      ]
   }
}
This page was last edited on January 22, 2016, at 19:56.
Comments or questions about this documentation? Contact us for support!