- Symptom
- 400 response when PUT contains only some fields409 Conflict when updating the security policyExisting API key is refused on the settings endpoint
- Cause
- The PUT endpoint requires the full configuration object and rejects partial bodies. If the policy is managed by environment variables, the API returns 409 and changes nothing. API key scopes are fixed at creation, so older keys lack the securitySettings:manage scope.
- Fix
- Create a new API key with the securitySettings:manage scope, GET the current policy, edit it and PUT the whole object back. Remove the environment variable management if you want to change it via API.
- Apply
GET /api/v1/settings/security-policy then PUT /api/v1/settings/security-policy with the full object (key scope: securitySettings:manage)- Affected
- n8n 2.31 and later, Enterprise
- Sources
Last verified 2026-11-13 · Confirmed by 0 builders