Retrieves the change history record of a ruleset with a specified event type. A history record is created each time rules are changed.
eventType required | string Type of event. |
version required | integer >= 1 Version of the ruleset. To retrieve the full related object instead of the ID, expand the response. For more information, see Expand to include embedded objects. |
Ruleset history record retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
// get version #2 details for this event ID const history = await api.events.getRulesVersionNumber({eventType: 'risk-score-changed', version: 2}); // the history exposes the version number and its `createdTime` console.log(history.fields.createdTime);
{- "version": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}