Accelerate the Value of Data

Get Relation Event

Get all relationship events.

This operation retrieves all relationship events.

This API endpoint does not check for long-term storage, hence, it will not return any data older than 4 months.

Request:

GET {TenantURL}/relations/_events?startTime={start_time}&endTime={end_time}&offset={offset}&max={max}&types={list_of_types_to_filter}
Table 1. Parameters
Parameter Required Details
Headers Authorization Yes Information about authentication access token in format "Bearer <accessToken>" (see details in Authentication API ).
Query offset No An offset in a list of events that are found.
max No Max number of events to retrieve.
types No Comma-separated list of event types by which the events should be filtered.
startTime Yes Start time from which events should be displayed.
endTime Yes End time from which events should be displayed.

Response

JSON Array representing a list of entity events.

Request

GET {TenantURL}/relations/_events?offset=0&max=10&types=CREATED,UPDATED&startTime=04-14-2013&endTime=04-15-2013
Headers: Authorization: Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512

Response

GET{
   TenantURL
}/relations/_events?offset=0&max=2&types=CREATED,
UPDATED&startTime=04-14-2013&endTime=08-24-2013
Headers:Authorization:Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512[
   {
      "type":"CREATED",
      "startEntityUri":"entities/01X59nt",
      "endEntityUri":"entities/01X5E49",
      "startEntityCrosswalks":[
         {
            "URI":"relations/01WhavR/crosswalks/1CL",
            "type":"configuration/sources/Veeva",
            "sourceTable":"Account",
            "value":"001K000000gNpCQIA0",
            "createDate":"2013-08-21T11:53:29.610+04:00",
            "updateDate":"2013-08-21T11:53:29.610+04:00"
         },
         {
            "URI":"relations/01WhavR/crosswalks/1GT",
            "type":"configuration/sources/Veeva",
            "sourceTable":"Account",
            "value":"001K000000gON8nIAG",
            "createDate":"2013-08-21T11:53:29.610+04:00",
            "updateDate":"2013-08-21T11:53:29.610+04:00"
         }
      ],
      "timestamp":1377063574083,
      "relation_type":"HasAddress",
      "relation_uri":"relations/01WhavR"
   },
   {
      "type":"CREATED",
      "startEntityUri":"entities/01X59nt",
      "endEntityUri":"entities/01X5IKP",
      "startEntityCrosswalks":[
         {
            "URI":"relations/01WhfBh/crosswalks/1Kb",
            "type":"configuration/sources/Veeva",
            "sourceTable":"Account",
            "value":"001K000000gNpCQIA0",
            "createDate":"2013-08-21T11:53:29.610+04:00",
            "updateDate":"2013-08-21T11:53:29.610+04:00"
         },
         {
            "URI":"relations/01WhfBh/crosswalks/1Oj",
            "type":"configuration/sources/Veeva",
            "sourceTable":"Account",
            "value":"001K000000gON8nIAG",
            "createDate":"2013-08-21T11:53:29.610+04:00",
            "updateDate":"2013-08-21T11:53:29.610+04:00"
         }
      ],
      "timestamp":1377063575034,
      "relation_type":"HasAddress",
      "relation_uri":"relations/01WhfBh"
   }
]