SafeWeb API

Update customer info

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

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

companyName?string

Updated company name

contactEmail?string

Updated primary contact email address

Formatemail
price?number

Updated subscription price

Formatdouble
Range0 <= value
planType?string

Updated plan type

Value in"safeweb-basic" | "safeweb-plus"

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/info" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string" \  -H "Content-Type: application/json" \  -d '{    "companyName": "Acme Corporation",    "contactEmail": "contact@acme.co",    "price": 49.99,    "planType": "safeweb-plus"  }'
{
  "success": true,
  "message": "Customer info updated successfully"
}
{
  "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": "Partner ID and API key are required in headers"
}
{
  "success": false,
  "error": "Failed to update customer info"
}