Risks

Import risks from templates

POST
/organizations/{organizationId}/risks/add-from-templates

Creates risks in the organization from the selected risk templates.

Authorization

ApiKeyAuth
x-api-key<token>

In: header

Path Parameters

organizationId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/organizations/string/risks/add-from-templates" \  -H "Content-Type: application/json" \  -d '{    "templateIds": [      "string"    ]  }'
{  "created": 0,  "skipped": 0,  "risks": [    {      "id": "string",      "organizationId": "string",      "riskTemplateId": "string",      "key": "string",      "title": "string",      "description": "string",      "category": "string",      "ownerUserId": "string",      "status": "open",      "inherentLikelihood": 0,      "inherentImpact": 0,      "inherentScore": 0,      "inherentBand": {        "label": "string",        "min": 0,        "max": 0,        "color": "string"      },      "treatmentStrategy": "untreated",      "treatmentRationale": "string",      "treatmentTargetDate": null,      "treatmentCompletedDate": null,      "residualLikelihood": 0,      "residualImpact": 0,      "residualScore": 0,      "residualBand": {        "label": "string",        "min": 0,        "max": 0,        "color": "string"      },      "controlIds": [        "string"      ],      "vendorId": "string",      "affectedRecords": [        {          "type": "dataSystem",          "id": "string"        }      ],      "ruleId": "string",      "reviewFrequency": "annual",      "lastReviewedAt": null,      "nextReviewDueAt": null,      "dateCreated": null,      "dateUpdated": null,      "property1": null,      "property2": null    }  ]}