Topics

marketingprogram

marketingprogram

publishing marketingprogram events

Publish events by HTTP POST to your own pods /publish/ endpoint including the topic, recipient and message body.]

Example

POST /publish/ HTTP/1.1
Host: # { your pod host url }
x-api-key: # { your api key }
Content-Type: application/json

{
  "topic": "https://realestate/{topic}#{event}",
  "recipient": # the publishing pod,
  "@context": # optional transformation context,
  "data": {
    "type": "{Action}
  }

}

receiving marketingprogram events

EventDescription
realestate/marketingprogram#createa marketing program has been created
realestate/marketingprogram#deletea marketing program was deleted
realestate/marketingprogram#memberadda program member was added by the agent
realestate/marketingprogram#memberremovea program member was removed by the agent

create

realestate/marketingprogram#create

a marketing program has been created

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
agentstring<uri>the user,tema or organization who sent the event
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!the object was created by the agent
data.typestring!CreateAction
data.objectobjectA collection of pre-defined activities which take place over a period of time or in a regular, ongoing schedule. <br/>RANGE: MarketingProgram

Example

{
  "topic": "realestate/marketingprogram#create",
  "time": "2022-10-12T01:13:43Z",
  "agent": "https://agentid.example.com/profile/card#me",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "CreateAction",
    "object": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "salesforceContactID": "c28834ca-db69-4da8-90ad-75cdc9907298",
        "namespaceid": "xxxx"
      },
      "member": [
        {
          "type": "Person",
          "name": "John Smith",
          "identifier": {
            "buysideid": "ab123"
          }
        }
      ],
      "creator": "http://{user}.example.com/profile/card#me",
      "dateCreated": "2022-10-12T01:13:43Z",
      "dateModified": "2022-10-12T01:13:43Z",
      "about": {
        "type": "Place",
        "address": {
          "streetAddress": "508 Homewood Ave",
          "addressLocality": "Chula Vista",
          "addressRegion": "California",
          "postalCode": "55555"
        }
      }
    }
  }
}

back to top


delete

realestate/marketingprogram#delete

a marketing program was deleted

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
agentstring<uri>the user,tema or organization who sent the event
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!object is removed by the agent from the targetCollection <br/>RANGE: DeleteAction
data.typestring!the action type
data.objectobjectA collection of pre-defined activities which take place over a period of time or in a regular, ongoing schedule.

Example

{
  "topic": "realestate/marketingprogram#delete",
  "time": "2022-10-12T01:13:43Z",
  "agent": "https://agentid.example.com/profile/card#me",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "DeleteAction",
    "object": {
      "type": "MarketingProgram",
      "identifier": {
        "namespaceid": "xxxx"
      }
    },
    "agent": "https://{user}.example.com/profile/card#me"
  }
}

back to top


memberadd

realestate/marketingprogram#memberadd

a program member was added by the agent

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
agentstring<uri>the user,tema or organization who sent the event
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!data (object) is added by user (agent), optionally to the targetCollection <br/>RANGE: AddAction
data.typestring!AddAction
data.objectobjectdescribes membership relation between a member (Person) and a MarketingProgram <br/>RANGE: ProgramMembership
data.targetCollectionobjectthe collection or reference to the collection receiving the data <br/>RANGE: MarketingProgram

Example

{
  "topic": "realestate/marketingprogram#memberadd",
  "time": "2022-10-12T01:13:43Z",
  "agent": "https://agentid.example.com/profile/card#me",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "AddAction",
    "object": {
      "type": "ProgramMembership",
      "role": "Owner",
      "member": {
        "type": "Person",
        "name": "Edgardo Fisher",
        "identifier": {
          "aceid": "816fd12f-6479-4f45-b26f-0a2ba54972b6"
        }
      },
      "memberOf": {
        "type": "MarketingProgram",
        "name": "Market Activity Report 508 Homewood Ave",
        "identifier": {
          "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
          "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
        }
      }
    },
    "targetCollection": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
        "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
      }
    }
  }
}

back to top


memberremove

realestate/marketingprogram#memberremove

a program member was removed by the agent

Schema

NameTypeDescription
topicstring!the event topic which determines the schema of event.data
timestring<date-time>date & time the event was produced
agentstring<uri>the user,tema or organization who sent the event
instrumentstring<uri>the service which created the event
sourcestring<uri>an agent, team or organization who received a copy of the event
originalRecipientstring<uri>the original recipient of the event with this id
idstring<uri>the shared identifier of the event, akd the event id
@idstring<uri>the url of your instance of the event in your inbox
dataobject!an object (object) is removed by a user (agent), optionally from a collection (targetCollection)
data.typestring!the action type
data.objectobjectdescribes membership relation between a member (Person) and a MarketingProgram <br/>RANGE: ProgramMembership
data.agent*
data.targetCollection*the collection from which the item is being removed <br/>RANGE: MarketingProgram

Example

{
  "topic": "realestate/marketingprogram#memberremove",
  "time": "2022-10-12T01:13:43Z",
  "agent": "https://agentid.example.com/profile/card#me",
  "instrument": "https://vendorid.example.com/profile/card#me",
  "source": "https://companyid.example.com/profile/card#me",
  "originalRecipient": "https://agentid.example.com/profile/card#me",
  "id": "https://instrumentid.example.com/publish/xxxxxxxxxxxxx",
  "@id": "https://yourpod.example.com/inbox/xxxxxxxxxxxxx",
  "data": {
    "type": "RemoveAction",
    "object": {
      "type": "ProgramMembership",
      "role": "Owner",
      "member": {
        "type": "Person",
        "name": "Edgardo Fisher",
        "identifier": {
          "aceid": "816fd12f-6479-4f45-b26f-0a2ba54972b6"
        }
      }
    },
    "agent": "https://{user-who-removed-the-item}.com/profile/card#me",
    "targetCollection": {
      "type": "MarketingProgram",
      "name": "Market Activity Report 508 Homewood Ave",
      "identifier": {
        "aceid": "4ef1469a-1fc4-43af-96b1-0e4402ccc46e",
        "buysideid": "83271c2a-c35e-44e9-b790-5389f2c11b17"
      }
    }
  }
}

back to top

Previous
listing