SafeWeb API

Update customer monitored assets

PATCH
/api/integrations/customer/{customerId}/assets

Path Parameters

customerId*string

Customer UUID

Formatuuid

Header 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"
}