Skip to content

Get the history of changes for a risk

GET
/v1/risks/{id}/history
curl --request GET \
--url 'https://api.adversarial.com/api/v1/risks/RSK-00001/history?page=1&page_size=100'
id
required
string

The ID of the risk — RSK-00001 (case-insensitive) or a bare number

Example
RSK-00001
page
integer format: int64
default: 1 >= 1 <= 1000000

1-indexed page number. Defaults to 1; zero is rejected.

page_size
integer format: int64
default: 100 >= 1 <= 500

Rows per page. Defaults to 100, max 500; zero is rejected.

List the risk history

Media typeapplication/json

Paginated list envelope: { "results": [...], "pagination": {...} }.

object
pagination
required

Pagination metadata describing the slice.

object
page
required

1-indexed page number of this result slice.

integer format: int64
page_size
required

Number of items requested per page.

integer format: int64
total_items
required

Total number of matching items across all pages.

integer format: int64
total_pages
required

Total number of pages at this page size.

integer format: int64
results
required

The items on this page.

Array<object>

A single entry in the history list, representing a set of simultaneous changes to an item

object
changes
required
Array
One of:

A text or single-choice field, such as status, severity, or title.

object
field
required
string
kind
required
string
Allowed values: text
new
string | null
old
string | null
is_creation
required

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.

boolean
timestamp
required
string format: date-time
user
required

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
email
required
string
first_name
required
string
icon

Relative path to the user’s avatar endpoint, e.g. "users/{id}/avatar?v={hash}". None when the user has no avatar.

string | null
id
required
string format: uuid
last_name
required
string
Example
{
"results": [
{
"changes": [
{
"kind": "text"
}
]
}
]
}

Risk not found