Reference 360 > Reference 360 REST API > audit trail
  

audit trail

Use this resource to retrieve the history of specified assets.

Get history of specified assets by time range

Retrieves all the change events of specified assets for a specific time range.

GET request

To retrieve all the change events of specified assets for a specific time range, submit a GET request with the following URI:
/rdm-service/external/v1/assets/audit

GET request query parameters

You can append query parameters to the URI to specify the time range, page number, page size, and modification type.
The following table describes the query parameters:
Parameter
Description
from
Start date and time of a time range. The start date and time is inclusive. Set the time range in the ISO-8601 format: yyyy-MM-dd'T'HH:mm:ss'Z'. For example, you can set 2023-01-01T00:00:00Z.
to
End date and time of a time range. The end date and time is exclusive. Set the time range in the ISO-8601 format: yyyy-MM-dd'T'HH:mm:ss'Z'. For example, you can set 2024-01-01T00:00:00Z.
page
Optional. Page number to display. Default is 0.
pageSize
Optional. The number of records to display on each page. Default is 100. Maximum is 10000.
assetType
Optional. Type of asset. Set the value to REFERENCEDATASET, CODELIST, CROSSWALK, or HIERARCHY.
modificationType
Optional. Type of modification. Value can be CREATE, UPDATE, or DELETE.

GET response

The response contains the change events of specified assets for a time range.
The following table describes the attributes in the response:
Attribute
Type
Description
pageSize
Number
The number of records displayed on each page.
page
Number
Page number displayed.
numberOfElements
Number
The number of events.
lastPage
Boolean
Indicates whether the current page is the last page in the total result.
firstPage
Boolean
Indicates whether the current page is the first page in the total result.
content
Array
Includes the list of modification events.
asset
Object
Includes details about the assets.
modificationType
String
The type of change made to the assets.
fieldChanges
Object
Displays the previous and new values of the fields with changes.
attributeChanges
Object
Displays the previous and new values of the attributes with changes.
eventTime
String
The date and time the assets were last updated.
userName
String
The user name of the user who initiated the modification.

GET example

To retrieve all the change events of specified assets for a specific time range, you might use the following request:
GET https://use4-mdm.dm-us.informaticacloud.com/rdm-service/external/v1/assets/audit?from=2023-01-01T00:00:00Z&to=2024-01-01T00:00:00Z HTTP/1.1
Accept: application/json
IDS-SESSION-ID: XXXXXXXXXXXXXXXXXXXXXX
The following sample response shows the change events of the specified assets from 2023-01-01T00:00:00Z to 2024-01-01T00:00:00Z:
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 2752

{
"pageSize":10,
"page":0,
"numberOfElements":10,
"lastPage":false,
"firstPage":true,
"content":[
{
"asset":{
"id":"640707a46b19964cc917d0c8",
"name":"Enterprise Country to ISO 3166-1 numeric",
"assetType":"CROSSWALK"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:45:11Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"640707a46b19964cc917d0c8",
"name":"Enterprise Country to ISO 3166-1 numeric",
"assetType":"CROSSWALK"
},
"modificationType":"CREATE",
"eventTime":"2023-03-07T09:45:08Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Country",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:28:38Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Country",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:28:37Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f6b19964cc917c7bf",
"name":"Country",
"assetType":"REFERENCEDATASET"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:28:08Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Countary",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:27:36Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Countary",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:27:35Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Countary",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:24:55Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Countary",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:24:53Z",
"userName":"integration-test-admin"
},
{
"asset":{
"id":"6407004f5b243e32c4b02bb8",
"name":"Enterprise Countary",
"assetType":"CODELIST"
},
"modificationType":"UPDATE",
"eventTime":"2023-03-07T09:24:48Z",
"userName":"integration-test-admin"
}
]
}