Why do I get an error when updating the “Template Code” in n8n workflow submission?
Hello @devcodejourneyy , The error you are seeing is a 400 Bad Request which means the n8n Creator Portal is rejecting the data you are trying to save. This is not a connection issue, it means something in the template code or the form is invalid. Check these things:
- Make sure your JSON is valid, paste it into jsonlint.com to verify
- Remove any instanceId or credential details from the JSON before submitting
- Make sure your Purchase URL is properly formatted and complete
If all looks fine, clear the field, re-paste the JSON and try saving again. If it still fails contact n8n Creator Portal support directly.
@devcodejourneyy this seems like a temporary glitch, it would work in a couple of hours.
Hi @devcodejourneyy, that 400 on teh PUT to api.n8n.io/api/workflows/15280 is Cloudflare’s WAF flagging patterns in your template JSON as suspicious. Open your workflow JSON and strip out any ?. optional chaining, template literals with ${}, or inline <script-like strings before pasting it into the Template Code field — those trip the firewall every time. Re-save after each removal to find the exact offending line.
