Developer portal
PUT /tenant/settings
Update tenant settings such as retention policy, thresholds, and webhook secret.
PilotPUT /tenant/settingsAuth: operator | admin
Summary
Update tenant settings such as retention policy, thresholds, and webhook secret.
Example
curl
curl -X POST "https://sparkling-vibrancy-production-1a7a.up.railway.app/optimize" \
-H "Authorization: Bearer 811f31d4-5b8e-4ed0-a7a2-8176e05eba63" \
-H "Content-Type: application/json" \
-d '{
"benchmarkOptIn": true,
"industry": "financial"
}'Request body
| Field | Type | Required | Description |
|---|---|---|---|
| readinessDropThreshold | number | No | Alert threshold for readiness drop. |
| alertOnNewQuantumVulnerable | boolean | No | Enable vulnerable-asset alerting. |
| certExpiryDays | integer | No | Certificate expiry warning window. |
| webhookSigningSecret | string | No | Secret used for webhook signing. |
| autoRetainScans | boolean | No | Automatically retain completed scans. |
| evidenceRetentionMonths | integer | No | Evidence retention duration (1-120). |
| benchmarkOptIn | boolean | No | Enable benchmark and drift analytics. |
| industry | string | No | Industry cohort used for benchmarking. |
Response
| Field | Type | Required | Description |
|---|---|---|---|
| settings | object | Yes | Persisted settings record. |
Errors
| Code | Meaning | Typical cause | Suggested fix |
|---|---|---|---|
| 401 | Unauthorized | Missing or invalid API key in Authorization, x-api-key, or query param. | Send Bearer <key> or x-api-key with a valid tenant token. |
| 403 | Forbidden | Valid key but insufficient role (viewer attempting write) or wrong admin key. | Use operator or admin role key; check RBAC matrix. |
| 404 | Not found | Scan, schedule, share link, or resource id does not exist or expired. | Verify id and tenant scope; share links expire per expiresHours. |
| 422 | Unprocessable entity | Invalid payload shape, unsupported scenario, or infeasible constraints. | Fix field errors in response detail; relax constraints and retry. |
| 429 | Too many requests | Per-key rate limit exceeded (default 300 requests per minute) or public endpoint limit. | Backoff with jitter; cache results; request higher limit for production. |
| 500 | Internal server error | Unexpected backend failure; includes requestId in response. | Retry with exponential backoff; contact support with requestId if persistent. |
| 503 | Service unavailable | Persistence disabled, auth DB unreachable, or admin API not configured. | Retry shortly; schedules require Postgres persistence enabled. |
See the full errors reference.
Found an issue? Report documentation feedback