n8n · api · fg-0602

n8n PUT /api/v1/settings/security-policy returns 400 or 409 or 403 when sending partial bodies or old API keys

If you see 400 response when PUT contains only some fields, the cause and the fix for n8n are below, last verified 2026-11-13.

Verified Nov 2026trust 50/100
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

Related traps

Have your agent know this before it fails

$ /plugin marketplace add getfootgun/footgun
$ /plugin install footgun@footgun