App Messaging - Conversation Events

Create

Example

{
    "eventId": "84a9ba5b-5833-49eb-8289-8856f28501fc",
    "accountId": 1234,
    "apiSpaceId": "fb42e8af-5fc3-40d4-a38c-034535c0a385",
    "name": "conversation.create",
    "payload": {
        "id": "acme_conv_1",
        "name": "Support request",
        "description": "My first support request",
        "roles": {
            "owner": {
                "canSend": true,
                "canAddParticipants": true,
                "canRemoveParticipants": true
            },
            "participant": {
                "canSend": true,
                "canAddParticipants": true,
                "canRemoveParticipants": true
            }
        },
        "isPublic": false,
        "participants": [
            {
                "profileId": "[email protected]",
                "role": "owner"
            },
            {
                "profileId": "Support",
                "role": "participant"
            }
        ]
    },
    "revision": 0,
    "etag": "\"1a-cOQdwU9OQDXnvOqWHfjQ72Izt78\"",
    "timestamp": "2017-05-30T16:32:27.074Z"
}

Delete

Example

{
    "eventId": "23bbf631-e682-4737-8819-b3160aa1dc92",
    "accountId": 1234,
    "apiSpaceId": "fb42e8af-5fc3-40d4-a38c-034535c0a385",
    "name": "conversation.delete",
    "payload": {
        "date": "2017-06-01T10:50:49.150Z",
        "by": "access:91c59b6a-5ff9-4a97-84a7-1b1ca4a0fe82",
        "id": "acme_conv_1"
    },
    "revision": 1,
    "etag": "\"1a-+9k1CMDpFHoLo2uBF5HqIq0ZLhw\"",
    "timestamp": "2017-06-01T10:50:49.154Z"
}

Participant Added

Example

{
    "eventId": "bf99d289-0ba9-4da6-b2b1-c342fa4a8619",
    "payload": {
        "profileId": "[email protected]",
        "role": "owner",
        "id": "acme_conv_1"
    },
    "accountId": 1234,
    "apiSpaceId": "fb42e8af-5fc3-40d4-a38c-034535c0a385",
    "name": "conversation.participantAdded",
    "timestamp": "2017-05-30T16:32:27.031Z"
}

Participant Deleted

Participant Updated

Undelete

Example

{
    "eventId": "19679cb9-0a2d-4bbd-a3b5-56c1f3243b81",
    "accountId": 1234,
    "apiSpaceId": "fb42e8af-5fc3-40d4-a38c-034535c0a385",
    "name": "conversation.undelete",
    "payload": {
        "id": "acme_conv_1",
        "name": "Support request",
        "description": "My first support request",
        "roles": {
            "owner": {
                "canSend": true,
                "canAddParticipants": true,
                "canRemoveParticipants": true
            },
            "participant": {
                "canSend": true,
                "canAddParticipants": true,
                "canRemoveParticipants": true
            }
        },
        "isPublic": false,
        "participants": [
            {
                "profileId": "[email protected]",
                "role": "owner"
            },
            {
                "profileId": "Support",
                "role": "participant"
            }
        ]
    },
    "revision": 2,
    "etag": "\"1a-N0pT35pVlNSVjeOrrTS7Y5ZfBMs\"",
    "timestamp": "2017-06-01T10:51:31.628Z"
}

Update