Get the history of changes for a risk
const url = 'https://api.adversarial.com/api/v1/risks/RSK-00001/history?page=1&page_size=100';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.adversarial.com/api/v1/risks/RSK-00001/history?page=1&page_size=100'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The ID of the risk — RSK-00001 (case-insensitive) or a bare number
Example
RSK-00001Query Parameters
Section titled “Query Parameters”1-indexed page number. Defaults to 1; zero is rejected.
Rows per page. Defaults to 100, max 500; zero is rejected.
Responses
Section titled “Responses”List the risk history
Paginated list envelope: { "results": [...], "pagination": {...} }.
object
Pagination metadata describing the slice.
object
1-indexed page number of this result slice.
Number of items requested per page.
Total number of matching items across all pages.
Total number of pages at this page size.
The items on this page.
A single entry in the history list, representing a set of simultaneous changes to an item
object
A text or single-choice field, such as status, severity, or title.
object
A date or timestamp field.
object
A user-assignment field.
object
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
A change to the item’s threat objectives, as the set added and the set removed.
object
A threat objective paired with how relevant it is to a risk.
Two relations are considered the same when the objective and its relevance
match; created_date records when the relation was last changed and is not
part of its identity.
object
The time that this relation was mutated
The threat objective type
A threat objective paired with how relevant it is to a risk.
Two relations are considered the same when the objective and its relevance
match; created_date records when the relation was last changed and is not
part of its identity.
object
The time that this relation was mutated
The threat objective type
True only for the actual first (creation) history row. False for all subsequent rows, including dummy rows inserted by touch_history() when a comment is added.
A User as returned by the API.
Profile images are not embedded — clients fetch them from
GET /api/v1/{icon} when icon is Some.
object
Relative path to the user’s avatar endpoint, e.g.
"users/{id}/avatar?v={hash}". None when the user has no avatar.
Example
{ "results": [ { "changes": [ { "kind": "text" } ] } ]}Risk not found