Retrieves the change history of a ruleset with a specified event type. All ruleset changes are recorded in the change history.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
fields | string Limits the returned fields to the specified list, each field separated by a comma. The ID value is always returned. |
Ruleset history retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
Resource not found.
// get the latest 20 versions for this event ID const history = await api.events.getRulesVersionNumber({eventType: 'risk-score-changed', limit: 20}); // each item exposes the version and `createdTime` history.items.forEach(edit => console.log(edit.fields.version));
[- {
- "version": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "href": "string",
- "rel": "self"
}
]
}
]