Get Activity Log Record
This operation returns an Activity Log Record by URI from the tenant.
Request
GET {TenantURL}/activities/{Activity Id}
Type | Name | Required | Details |
---|---|---|---|
Headers | Authorization | Yes | Information about authentication access token in format "Bearer <accessToken> " (see details in Authentication API. |
Query | itemsCursor | No | In 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. |
Query | joinSplitActivity | No |
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:
Without this parameter you would need to make several calls to get the complete set of log records for the activity, by appending Instead, you can use the When set If there are too many items in the resulting activity, the API allows for pagination via the |
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"
}