Jump to: navigation, search

DeleteUserData

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

Overview

Deletes a user data key

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

Parameters

Parameter Value
operationName DeleteUserData
key The key to remove from the userData collection. (mandatory)

Samples

Request

POST /api/v2/me/im-sessions/00446K0L8GAC3B9R8O7GK2LAES00000D
{
  "operationName": "DeleteUserData",
  "key": "bestNumber"
}

HTTP Response

{
  "statusCode": 0
}

CometD Response

{  
   "messageType":"IMSessionStateChangeMessage",
   "notificationType":"AttachedDataChanged",
   "imSession":{  
      "state":" Talking",
      "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!