Jump to: navigation, search

SetDisposition

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

Overview

Sets the disposition for the specified Facebook interaction using the provided parameters. It is processed by updating the key in the UserData.

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

Parameters

Parameter Value
operationName SetDisposition
disposition A string value to be used for the Facebook disposition.
dispositionKey An optional string value to be used for the UserData key to denote the Facebook disposition. If not specified, the disposition key configured for the server is used.

Samples

Request

POST api/v2/me/facebook/01QG4HAN88NP400J
 
{
 "operationName": "SetDisposition", 
 "dispositionKey": "DISP_KEY", 
 "disposition": "resolved"
}

HTTP Response

{
  "statusCode": 0,
  "referenceId": 44
}

CometD Response

{
"facebook": {"capabilities": ["Cancel",
                                 "Send",
                                 "AddComment",
                                 "AttachUserData",
                                 "UpdateUserData",
                                 "DeleteUserData",
                                 "SetDisposition",
                                 "SetInFocus",
                                 "Transfer"],
               "facebookType": "Outbound",
               "from": "vitaliy_onv",
               "id": "01QG4HAN88NP400J",
               "message": "Hi saved facebook!",
               "state": "Composing",
               "subject": "Hi saved facebook!",
               "uri": "http://192.168.83.25:8090/api/v2/facebooks/01QG4HAN88NP400J",
               "userData": {"DISP_KEY": "resolved",
                             "FromAddress": "vitaliy_onv",
                             "UserData2": "DATAUPDATE-@123"}},
 "messageType": "FacebookStateChangeMessage",
 "notificationType": "PropertiesUpdated",
 "referenceId": 21
}
This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!