Organizations

Update contact protection period settings

PUT
/api/organizations/{organizationId}/contact-protection-settings

Updates the contact protection period (non-negative integer hours, capped at 720 = 30 days). Admin can update own org; SuperAdmin can update any org.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

organizationId*string

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

curl -X PUT "https://example.com/api/organizations/string/contact-protection-settings" \  -H "Content-Type: application/json" \  -d '{    "contactProtectionPeriod": 48  }'
{  "success": true,  "message": "Contact protection settings updated",  "data": {    "contactProtectionPeriod": 48  }}