curl --request POST \
--url https://api.example.com/api/findings/{id}/apply-patch{
"success": true,
"data": {
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"patch_id": "789e1234-e89b-12d3-a456-426614174333",
"applied_by": "555e5555-e89b-12d3-a456-426614175555",
"event": {
"id": "987e6543-e89b-12d3-a456-426614174999",
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "555e5555-e89b-12d3-a456-426614175555",
"event_type": "patch_applied",
"old_value": null,
"new_value": "789e1234-e89b-12d3-a456-426614174333",
"comment": null,
"metadata": null,
"created_at": "2026-03-12T15:45:00Z"
}
}
}
Mark a security patch as applied for a finding
curl --request POST \
--url https://api.example.com/api/findings/{id}/apply-patch{
"success": true,
"data": {
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"patch_id": "789e1234-e89b-12d3-a456-426614174333",
"applied_by": "555e5555-e89b-12d3-a456-426614175555",
"event": {
"id": "987e6543-e89b-12d3-a456-426614174999",
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "555e5555-e89b-12d3-a456-426614175555",
"event_type": "patch_applied",
"old_value": null,
"new_value": "789e1234-e89b-12d3-a456-426614174333",
"comment": null,
"metadata": null,
"created_at": "2026-03-12T15:45:00Z"
}
}
}
Apply the suggested patch for a security finding. This operation marks the patch as applied and creates an audit event to track who applied it and when.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iamngoni/heimdall/llms.txt
Use this file to discover all available pages before exploring further.
patch_applied event for trackingShow Response Properties
Show Event Properties
patch_applied for this operationnull for patch application events{
"success": true,
"data": {
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"patch_id": "789e1234-e89b-12d3-a456-426614174333",
"applied_by": "555e5555-e89b-12d3-a456-426614175555",
"event": {
"id": "987e6543-e89b-12d3-a456-426614174999",
"finding_id": "123e4567-e89b-12d3-a456-426614174000",
"user_id": "555e5555-e89b-12d3-a456-426614175555",
"event_type": "patch_applied",
"old_value": null,
"new_value": "789e1234-e89b-12d3-a456-426614174333",
"comment": null,
"metadata": null,
"created_at": "2026-03-12T15:45:00Z"
}
}
}
{
"success": false,
"code": 404,
"message": "Finding '123e4567-e89b-12d3-a456-426614174000' not found"
}
{
"success": false,
"code": 404,
"message": "No patch available for finding '123e4567-e89b-12d3-a456-426614174000'"
}
{
"success": false,
"code": 409,
"message": "Patch has already been applied"
}
{
"success": false,
"code": 500,
"message": "Failed to apply patch: database connection error"
}
{
"success": false,
"code": 500,
"message": "Patch applied but failed to record event: database error"
}
Review the patch first
suggested_patch field and review the proposed changes before applying.Apply code changes
Mark as applied