Record risk-owner acceptance
const url = 'https://api.varman.io/v1/risks/rsk_abc123def456/acceptances';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"acceptedById":"mem_abc123def456","notes":"Residual risk reviewed at the Q2 risk review."}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/risks/rsk_abc123def456/acceptances \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "acceptedById": "mem_abc123def456", "notes": "Residual risk reviewed at the Q2 risk review." }'Records an immutable, timestamped acceptance of a risk’s current residual risk by the risk owner (or a chosen member). Re-record after the residual rating changes; prior events remain in the history.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
rsk_abc123def456Risk ID
Request Bodyrequired
Section titled “Request Bodyrequired”Acceptance data (acceptor defaults to the risk owner)
object
Member ID of the acceptor. Defaults to the risk owner (assignee) when omitted.
Example
mem_abc123def456Optional notes recorded with the acceptance.
Example
Residual risk reviewed at the Q2 risk review.Responses
Section titled “Responses”Acceptance recorded successfully
object
Acceptance event ID
Member ID of the acceptor (null if since removed)
Acceptor display name, frozen at acceptance
Residual likelihood frozen at acceptance
Residual impact frozen at acceptance
Risk level of the accepted residual rating
Human-readable level label
True when the residual rating changed after this acceptance was recorded — re-acceptance is required
When the acceptance was recorded (server-set, immutable)
How the request was authenticated
User information (only for session auth)
object
Example
{ "id": "rska_abc123def456", "acceptedById": "mem_abc123def456", "acceptedByName": "Jane Doe", "notes": "Residual risk reviewed at the Q2 risk review.", "residualLikelihood": "very_unlikely", "residualImpact": "insignificant", "level": "very-low", "levelLabel": "Low", "stale": false, "authType": "api-key", "authenticatedUser": { "id": "usr_def456ghi789", "email": "user@example.com" }}No owner assigned, or the acceptor is not a valid member
object
Example
{ "message": "No owner is assigned. Assign an owner or choose an acceptor."}Unauthorized - Invalid authentication
object
Example
{ "message": "Invalid or expired API key"}Forbidden - User does not have permission to access this risk
object
Example
{ "message": "You do not have access to this risk"}Risk not found
object
Example
{ "message": "Risk with ID abc123 not found in organization org_abc123def456"}Internal server error
object
Example
{ "message": "Internal server error"}