Unify and manage your data

Get Activity Log Record

This operation returns an Activity Log Record by URI from the tenant.

Request

GET {TenantURL}/activities/{Activity Id}
Table 1. Parameters
TypeNameRequiredDetails
HeadersAuthorizationYesInformation about authentication access token in format "Bearer <accessToken>" (see details in Authentication API.
QueryitemsCursorNoIn case you get an Activity Log Record with the non-empty itemsCursor attribute, this means that the items array of the record does not contain all items. And in this case you may re-request the Activity Log Record by id (using this request) and you should specify itemsCursor parameter in the request. In this case you will get the next portion of the Activity Log Record Items. And itemsCursor attribute again if there are more items that were not returned.
QueryjoinSplitActivityNo

A Boolean to control whether you access a split activity as a single activity.

When an operation generates a large activity with a huge number of items, such activities are split into multiple activities, for example:

  • 4dc616ae-51ed-4b35-aa02-aa5e178ed004
  • 4dc616ae-51ed-4b35-aa02-aa5e178ed004-p001
  • 4dc616ae-51ed-4b35-aa02-aa5e178ed004-p002

Without this parameter you would need to make several calls to get the complete set of log records for the activity, by appending -p00x to the activity ID, where x starts at 1.

Instead, you can use the joinSplitActivity parameter to access a split activity as a single activity.

When set joinSplitActivity=true, it will include all items from other parts. Continuing the example above and the parameter set to true, you would make a single request with using the 4dc616ae-51ed-4b35-aa02-aa5e178ed004 ID and the response would also include items from p001 and p002.

If there are too many items in the resulting activity, the API allows for pagination via the itemsCursor query parameter.

Response

JSON Object representing the Activity Log Record with specified Id.

Simple Example

Request

GET {TenantURL}/activities/abc
Headers: Authorization: Bearer 204938ca-2cf7-44b0-b11a-1b4c59984512

Response

{
   "userId":"aleshka",
   "label":"My First Activity",
   "description":"My First Description",
   "timestamp":1427976019918,
   "items":[
      {
         "id":"0000KFF",
         "method":"POST",
         "url":"/entities",
         "clientType":"Dataload Programm",
         "objectUri":"entities/00005KL",
         "objectType":"configuration/entityTypes/HCP",
         "objectLabel":"John Smith",
         "timestamp":1427976019760,
         "data":{
            "type":"ENTITY_CREATED"
         }
      },
      {
         "id":"0000Sll",
         "method":"POST",
         "url":"/entities",
         "clientType":"Dataload Programm",
         "objectUri":"relations/00006OP",
         "objectType":"configuration/relationTypes/HasAddress",
         "startObjectUri":"entities/00005KL",
         "startObjectLabel":"John Smith",
         "endObjectUri":"entities/00009ab",
         "endObjectLabel":"Palo Alto, 3309 El Camino Real",
         "timestamp":1427976019760,
         "data":{
            "type":"RELATIONSHIP_CREATED"
         }
      },
      {
         "id":"0000X21",
         "method":"POST",
         "url":"/activities",
         "timestamp":1427976019918
      },
      {
         "id":"0000OVV",
         "method":"POST",
         "url":"/entities",
         "clientType":"Dataload Programm",
         "objectUri":"entities/00009ab",
         "objectType":"configuration/entityTypes/Location",
         "objectLabel":"Palo Alto, 3309 El Camino Real",
         "timestamp":1427976019760,
         "data":{
            "type":"ENTITY_CREATED"
         }
      }
   ],
   "URI":"activities/abc"
}

Join Split Activity Example

Request

GET {TenantURL}/activities/abcde?joinSplitActivity=true
Headers: Authorization: Bearer 204838ca-2cf7-44b0-b11a-1b4c58984512

Response

{
    "uri": "activities/manual_2",
    "user": "user.name@example.com",
    "label": "activity_abcde_999",
    "description": "Activity added manually 999",
    "timestamp": 1726656385406,
    "items": [
	...
	],
    "itemsTotal": 999,
    "itemsCursor": "c8"
}