Jump to: navigation, search

Create

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

Overview

Creates a new empty Facebook interaction.

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

Parameters

Parameter Value
operationName Create
queuePath The queue URI for the specified Facebook interaction.
userData The key value data to attach to the Facebook interaction. (optional)

Samples

Request

HTTP POST /api/v2/me/facebook
{
  “operationName”: “Create”,
  "queuePath": "/queues/995655ec-81a5-46b0-82d0-3f2c5eca263d"
}

HTTP Response

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

CometD Response

{
"facebook": {"capabilities": ["Cancel",
                                  "Send",
                                  "AddComment",
                                  "AttachUserData",
                                  "UpdateUserData",
                                  "DeleteUserData",
                                  "SetDisposition",
                                  "SetInFocus",
                                  "Transfer"],
                "facebookType": "Outbound",
                "id": "01QG4HAN88NP400J",
                "state": "Composing",
                "uri": "http://192.168.83.25:8090/api/v2/facebooks/01QG4HAN88NP400J"},
  "messageType": "FacebookStateChangeMessage",
  "notificationType": "StatusChange",
  "referenceId": 9
}
Field Description
messageType The category of message.
notificationType The purpose of the notification.
facebook The element containing all Facebook-specific data.
This page was last edited on October 31, 2023, at 13:29.
Comments or questions about this documentation? Contact us for support!