# Update a Risk

Update a Risk

Endpoint: PATCH /api/risks/{riskId}
Version: 1.13
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Path parameters:

  - `riskId` (string, required)
    The unique Salesforce ID of the risk to update. This is REQUIRED.

## Request fields (application/json):

  - `Reference` (string)
    The reference (name) of the risk. Only patchable when the org does not use sequence-based reference generation.

  - `Summary` (string)
    A brief summary of the risk.

  - `Description` (string)
    A detailed description of the risk.

  - `Mitigation` (string)
    The mitigation plan for the risk.

  - `MitigationDueDate` (string)
    The date by which mitigation must be completed. Must be in YYYY-MM-DD format.

  - `Contingency` (string)
    The contingency plan if the risk materialises.

  - `RaisedDate` (string)
    The date the risk was raised. Must be in YYYY-MM-DD format.

  - `ClosedDate` (string)
    The date the risk gets closed. Must be in YYYY-MM-DD format. Required when RiskStatus is set to a closed status.

  - `RiskStatusId` (string)
    The ID of the Risk Status (e.g., 'Identified', 'Active', 'Closed').

  - `RiskCategoryId` (string)
    The ID of the Risk Category (e.g., 'Technical', 'Commercial', 'Management').

  - `RiskImpactId` (string)
    The ID of the Risk Impact (e.g., 'High', 'Medium', 'Low').

  - `RiskProbabilityId` (string)
    The ID of the Risk Probability (e.g., 'High', 'Medium', 'Low'). Only applicable for Source category risks - auto-calculated for Multiplier categories.

  - `RaisedByContactId` (string)
    The Salesforce ID of the contact who raised the risk.

  - `OwnedByContactId` (string)
    The Salesforce ID of the contact who owns the risk.

  - `RiskStrategyId` (string)
    The ID of the Risk Strategy (e.g., 'Mitigate', 'Accept', 'Transfer').

  - `IsInternal` (boolean)
    Set to true if this is an internal risk.

  - `SharedWithCustomer` (boolean)
    Set to true if this risk is shared with the customer. Only applicable when the parent engagement has SharedWithCustomer enabled.

## Response 200:

  - `200` (unknown)
    Success

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 500:

  - `500` (unknown)
    Server Error

## Response 500 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

