PUT
/attribute-settingsToggle the tenant's attribute strict mode
Toggle the tenant's strict mode. Requires the attributes:admin capability on the API key (strict mode is tenant-wide governance state); a key without it receives 403 ATTRIBUTE_ADMIN_CAPABILITY_REQUIRED.
Request bodyrequired
| Field | Type | Description |
|---|---|---|
strict_moderequired | boolean | When true, only declared keys are accepted on the write path. |
Responses
200Settings updated
{
"success": true,
"data": {
"strict_mode": true
}
} 401Unauthenticated
{
"success": false,
"message": "Validation failed",
"code": "VALIDATION_ERROR"
} 403Forbidden — missing the required 'attributes:admin' capability (ATTRIBUTE_ADMIN_CAPABILITY_REQUIRED)
{
"success": false,
"message": "Validation failed",
"code": "VALIDATION_ERROR"
} 422Validation error
{
"success": false,
"message": "Validation failed",
"code": "VALIDATION_ERROR"
} Examples
curl -X PUT https://ledga.io/api/v1/attribute-settings \
-H "Authorization: Bearer sk_xxxxxxxx_your_secret" \
-H "Content-Type: application/json" \
-d '{
"strict_mode": true
}'