SafeWeb API
Partner API

Update breach resolved status

POST
/api/v1/integrations/breach/status

Header Parameters

SW-PARTNER-ID*string

Partner organization identifier

SW-API-KEY*string

API authentication key

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

curl -X POST "https://example.com/api/v1/integrations/breach/status" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string" \  -H "Content-Type: application/json" \  -d '{    "breachId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",    "resolved": true  }'
{
  "success": true,
  "resolved": true
}
{
  "success": false,
  "error": "Request body must be valid JSON"
}
{
  "success": false,
  "error": "Failed to verify org API key"
}
{
  "success": false,
  "error": "Breach not found or does not belong to partner"
}

{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}

{
  "success": false,
  "error": "Failed to update breach status"
}