contact#planupdate

Message

a contact plan (data.object) is updated by a user (data.agent)

Payload Example(s) (generated)

{
  "topic": "realestate/contact#planupdate",
  "data": {
    "type": "UpdateAction",
    "agent": {
      "type": "Person",
      "name": "string",
      "email": "user@example.com",
      "identifier": {
        "bhhsconsumerid": "12345"
      }
    },
    "object": {
      "type": "Plan",
      "identifier": {
        "bhhsconsumerid": "12345"
      },
      "name": "my awesome plan",
      "description": "this is the description of my awesome plan",
      "member": [
        {
          "type": "Task",
          "identifier": {
            "redEvent_ID": "23445"
          },
          "actionStatus": "PotentialActionStatus",
          "memberOf": {
            "type": "Plan",
            "identifier": {
              "redPlan_ID": "xxxx"
            }
          },
          "agent": {
            "type": "RealEstateAgent",
            "id": "http://user.example.com/profile/card#me"
          },
          "participant": [
            {
              "type": "Contact",
              "name": "Bruce Wayne",
              "email": "bruce@example.com",
              "identifier": {
                "redContact_GUID": "92d0a096-457e-4643-ace8-fa95b6bdb1c5"
              }
            }
          ],
          "name": "Call Ricky",
          "description": "Agenda 1. Something 2. Something Else ...",
          "keywords": [
            "string"
          ],
          "dateDue": "2019-08-24T14:15:22Z",
          "dateCompleted": "2019-08-24T14:15:22Z",
          "location": {
            "type": "Place",
            "address": {
              "streetAddress": "1007 Mountain Gate Rd",
              "addressLocality": "Gotham City",
              "addressRegion": "NJ",
              "postalCode": "10007",
              "addressCounty": "Gotham addressCounty",
              "addressSubdivision": "Gotham Heights"
            }
          }
        }
      ],
      "creator": "http://agent.example.com/profile/card#me",
      "dateCreated": "2019-08-24T14:15:22Z",
      "dateModified": "2019-08-24T14:15:22Z",
      "dateCompleted": "2019-08-24T14:15:22Z"
    }
  }
}

Payload

NameTypeDescription
(root)object-
topicstringconst ("realestate/contact#planupdate")
dataobject-
data.typestringconst ("UpdateAction")
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 collection of related tasks
data.object.typestringconst ("Plan")
data.object.identifierobject1 properties
data.object.namestringname of the plan
data.object.descriptionstringdescription of the item
data.object.memberarray<object>tasks which make up the plan
data.object.member.typestringallowed ("Task") The item type (Linked-Data @type)
data.object.member.identifierobject1 properties
data.object.member.actionStatusstringallowed ("CompletedActionStatus", "FailedActionStatus", "ActiveActionStatus", "PotentialActionStatus") disposition of the Action at the time of this action message.
data.object.member.memberOfobjecta plan the task is associated with
data.object.member.agentobjectthe party who completed, or will complete the task
data.object.member.participantarray<object>Other co-agents with a direct or indirect interest in the action.
data.object.member.participant (single item)object-
data.object.member.namestringname or title
data.object.member.descriptionstringtask detailed description
data.object.member.keywordsarray<string>-
data.object.member.keywords (single item)string-
data.object.member.dateDuestringthe due date-time (ISO 8601 formated) format (date-time)
data.object.member.dateCompletedstringdate the task was completed format (date-time)
data.object.member.locationobjectthe physical location where an event takes place
data.object.creatoranythe item creator
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.dateCompletedstringThe date on which the item was created. format (date-time)

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