devguard

Risk controlMap

Map a control to a risk.

POST
/risk-control/map/

Authorization

Authorization
AuthorizationBearer <token>

In: header

Request Body

application/json

controlId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
riskId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
organizationId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://app.devguard.ch/api/risk-control/map/" \  -H "Content-Type: application/json" \  -d '{    "controlId": "197efa3f-43a6-4dbf-b001-4d97174cd7af",    "riskId": "a877270e-2f95-4a32-acbf-d5219a01533c",    "organizationId": "string"  }'
{
  "id": "string",
  "frameworkAdoptionId": "string",
  "controlId": "string",
  "coverageStatus": "FULL",
  "coverageGap": "string",
  "lastReviewedAt": "string",
  "reviewedBy": "string",
  "policyId": "string",
  "sectionUid": "string",
  "organizationId": "string",
  "createdAt": "string",
  "updatedAt": "string"
}
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}

How is this guide?