Creates a copy of a risk from risk library to the risk register

Copy risks between library and register

Securitybearer
Request
Request Body schema: application/json
required
bulkActionType
required
string

The copy action to perform on from risk library to the risk module.

Enum: "COPY_BY_IDS" "COPY_BY_GROUPS"
risksIds
required
Array of strings

An array of the risks ids that you want to copy from risk library to the risk module.

riskGroups
required
Array of arrays

An array of the risk groups that you want to copy from risk library to the risk module.

Responses
201
400

Malformed data and/or validation errors

401

Invalid Authorization

403

You are not allowed to perform this action

500

Internal server error

default

Response Code: 412

You must accept the Drata terms and conditions to use the API

post/public/risk-library/copy
Request samples
application/json
{
  • "bulkActionType": "COPY_BY_IDS",
  • "risksIds": [
    • "AA-01",
    • "AA-02",
    • "AA-03"
    ],
  • "riskGroups": [
    • "CLOUD_ENVIRONMENT"
    ]
}
Response samples
application/json
{
  • "risks": [
    • {
      • "id": 1,
      • "riskId": "AC-04",
      • "title": "Password Management - Password Cracking",
      • "description": "An attacker attempts to gain access to organizational information by guessing of passwords.",
      • "treatmentPlan": "UNTREATED",
      • "treatmentDetails": "Building doors can be open and an unauthorized person can walk in.",
      • "anticipatedCompletionDate": "2020-07-06 12:00:00.000000",
      • "completionDate": "2020-07-06 12:00:00.000000",
      • "impact": 5,
      • "likelihood": 5,
      • "score": 5,
      • "residualImpact": 5,
      • "residualLikelihood": 5,
      • "residualScore": 5,
      • "applicable": true,
      • "controls": [
        • {
          • "id": 23,
          • "code": "DCF-01",
          • "name": "Hello",
          • "description": "this is a description",
          • "isReady": true,
          • "controlNumber": 1,
          • "archivedAt": 1
          }
        ],
      • "categories": [
        • {
          • "id": 1,
          • "name": "Governance"
          }
        ],
      • "owners": [],
      • "reviewers": [],
      • "documents": [
        • {
          • "id": 1,
          • "name": "Security Training",
          • "createdAt": "2020-07-06 12:00:00.000000"
          }
        ],
      • "notes": [
        • {
          • "id": 1,
          • "comment": "Good comment",
          • "createdAt": "2020-07-06 12:00:00.000000",
          • "updatedAt": "2020-07-06 12:00:00.000000",
          • "owner": {}
          }
        ]
      }
    ]
}