Update customer monitored assets
Path Parameters
customerId*string
Customer UUID
Format
uuidHeader Parameters
SW-PARTNER-ID*string
Partner organization identifier
SW-API-KEY*string
API authentication key
Request Body
application/json
domains?array<>
Full replacement list of monitored domains. Pass an empty array to remove all domains.
emails?array<>
Full replacement list of monitored email addresses. Pass an empty array to remove all emails.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://connect.safeweb.co/api/integrations/customer/497f6eca-6276-4993-bfeb-53cbbbba6f08/assets" \ -H "SW-PARTNER-ID: string" \ -H "SW-API-KEY: string" \ -H "Content-Type: application/json" \ -d '{ "domains": [ "example.com", "new.example.com" ], "emails": [ "user@example.com" ] }'{
"success": true,
"domains": [
"example.com",
"new.example.com"
],
"emails": [
"user@example.com"
]
}{
"success": false,
"error": "Request body must be valid JSON"
}{
"success": false,
"error": "Failed to verify org API key"
}{
"success": false,
"error": "Customer not found or does not belong to partner"
}{
"success": false,
"error": "At least one of domains or emails must be provided"
}{
"success": false,
"error": "Failed to update customer assets"
}Update customer info PATCH
Update a customer's non-monitoring details such as contact name, email address, billing configuration, and plan. The customer must belong to the authenticated partner.
Get breach categories GET
Returns the list of breach categories used to classify types of data exposed in breaches. Requires valid partner authentication via SW-PARTNER-ID and SW-API-KEY headers.