contact#comment

Message

a comment (data.object) is added by a user (data.agent) to a contact (data.target)

Payload Example(s) (generated)

{
  "topic": "realestate/contact#comment",
  "data": {
    "type": "CommentAction",
    "agent": {
      "type": "Person",
      "name": "string",
      "email": "user@example.com",
      "identifier": {
        "bhhsconsumerid": "12345"
      }
    },
    "object": {
      "type": "Comment",
      "dateCreated": "2019-08-24T14:15:22Z",
      "dateModified": "2019-08-24T14:15:22Z",
      "dateDeleted": "2019-08-24T14:15:22Z",
      "text": "Populus debet control notitia sua",
      "author": {
        "type": "Contact",
        "name": "Mark Twain",
        "identifier": {
          "originatingSystemName": "originating-system-id"
        }
      },
      "about": {
        "type": "Contact",
        "name": "Robin",
        "identifier": {
          "redContact_GUID": "6bf62a1b-225e-4fca-87b3-54cc09446a66"
        }
      },
      "identifier": {
        "redContact_Note_ID": "62c4a9ae-eba1-4c27-a2dd-afb4068695f8"
      }
    },
    "target": {
      "type": "Contact",
      "identifier": {
        "bhhsconsumerid": "12345"
      }
    }
  }
}

Payload

NameTypeDescription
(root)object-
topicstringconst ("realestate/contact#comment")
dataobject-
data.typestringconst ("CommentAction")
data.agentobject>= 2 properties
data.agent.typestringconst ("Person")
data.agent.namestring-
data.agent.emailstringa valid email address format (email)
data.agent.identifierobject1 properties
data.objectobjectA comment on an item.
data.object.typestringconst ("Comment")
data.object.dateCreatedstringThe date on which the item was created. format (date-time)
data.object.dateModifiedstringThe date on which the item was most recently modified or when the item's entry was modified within a DataFeed. format (date-time)
data.object.dateDeletedstringThe date on which the item was deleted. format (date-time)
data.object.textstring-
data.object.authorobjectthe author of something
data.object.aboutobjectThe subject of the content
data.object.identifierobject1 properties
data.targetobject-
data.target.typestringconst ("Contact")
data.target.identifierobject1 properties

Headers

NameTypeDescription
(root)object-
timestringdate & time the event was produced format (date-time)
agentstringif you are a multi-tenant app, then the agent is the user associated with the event data. any future events related to this message will be sent to the same agent/recipient format (uri)
instrumentstringthe app or service that produced the event on behalf of the agent/user format (uri)
sourcestringa copy of the event was sent to the source(s). format (uri)
originalRecipientstringthe originalRecipient helps you determine the subscription that delivered the event to you. if the originalRecipient is the same as the agent, then the you are subscribed to the agent. if the originalRecipient is different from the agent, then you are subscribed to the event source format (uri)
idstringthe Event ID (aka "Publish ID") is the immutable canonical identifier for the event. it is a URI that is unique to the event and will not change. all subscribers will receive the same id for the same event. format (uri)
@idstringformat (uri)

Tools