Revision as of 17:14, September 29, 2015 by Jumunn (talk | contribs) (Created page with "=SetDisposition= __NOTOC__ This operation is part of the Facebook Private Messaging API section of the Genesys Web Services REST API. <h2> Overview...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

SetDisposition

This operation is part of the Facebook Private Messaging API section of the Genesys Web Services REST API.

Overview

This request sets the disposition for the specified facebook session using the provided parameters, it will be processed by updating the key in the user data.

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

Parameters

Parameter Value
operationName SetDisposition
disposition A string value to be used for the facebooksession disposition.
dispositionKey An optional string value to be used for the as the userdata key for the facebooksession disposition. If not specified, the disposition key configured for the server will be used.

Sample

Request

POST api/v2/me/facebooksession/0000Na9B26EF003M 

{
 'operationName': 'SetDisposition', 
 'dispositionKey': 'DispositionCode', 
 'disposition': 'IssueResolved'
}

Response

{
  "statusCode": 0
}

Notification

{
    u'referenceId': 34,
    u'facebooksession': {
        u'participants': [
            {
                u'nickname': u'TestName',
                u'type': u'Agent',
                u'participantId': u'009052C73228006D'
            },
            {
                u'nickname': u'FirstL',
                u'type': u'Customer',
                u'participantId': u'009052C73223006B'
            }
        ],
        u'state': u'Chatting',
        u'id': u'0000Na9B26EF003M',
        u'capabilities': [
            u'Transfer',
            u'Complete',
            u'Leave',
            u'InFocus',
            u'SendMessage',
            u'SendStartTypingNotification',
            u'SendStopTypingNotification'
        ],
        "userData": {
            "DispositionCode": "IssueResolved"
        },
        u'uri': u'http: //localhost:8080/api/v2/facebooksession/0000Na9B26EF003M'
    },
    u'notificationType': u'PropertiesUpdated',
    u'messageType': u'FacebooksessionStateChangeMessage'
}
Comments or questions about this documentation? Contact us for support!