{"product_id":"n8n-workflow-restore-supabase-row-updates-via-rewind-http-api","title":"n8n Workflow: Restore Supabase Row Updates via Rewind HTTP API","description":"\u003ch3\u003eRestore Supabase Row Updates Using Rewind’s Rewind HTTP API (with Conflict Protection)\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow claims an \u003cstrong\u003eapproved Rewind recovery job\u003c\/strong\u003e and conditionally restores a \u003cstrong\u003eSupabase row update\u003c\/strong\u003e—only when the stored revision still matches. If a later edit exists, it preserves the newer data and reports the result back to Rewind.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRuns during setup\u003c\/strong\u003e (manual) to validate the end-to-end recovery process before scheduling it.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates configuration\u003c\/strong\u003e, including the two \u003cstrong\u003eservice origins\u003c\/strong\u003e and the \u003cstrong\u003econnection name\u003c\/strong\u003e used for the Rewind capture.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eClaims one human-approved recovery job\u003c\/strong\u003e from Rewind.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eValidates the supported update\u003c\/strong\u003e, table alias, and row ID included in the job.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReads the current Supabase resource\u003c\/strong\u003e and compares:\n    \u003cul\u003e\n      \u003cli\u003ethe current revision vs. the recorded revision from Rewind\u003c\/li\u003e\n      \u003cli\u003ethe recorded fields captured at the time of the Rewind capture\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eConditionally restores\u003c\/strong\u003e the saved fields only when revisions match; \u003cstrong\u003eotherwise it preserves newer edits\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReports the outcome to Rewind\u003c\/strong\u003e, then you independently verify the restored row \u003cstrong\u003edirectly in Supabase\u003c\/strong\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRecovering from accidental or harmful updates to a Supabase row after Rewind has captured the event and a human approved the recovery.\u003c\/li\u003e\n  \u003cli\u003ePreventing data clobbering by ensuring a restore only happens when no newer edits occurred since capture.\u003c\/li\u003e\n  \u003cli\u003eSaaS operations and automation engineering workflows where recovery steps require approval and auditability.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\u003c\/strong\u003e: \u003ccode\u003eif\u003c\/code\u003e, \u003ccode\u003eset\u003c\/code\u003e, \u003ccode\u003ecode\u003c\/code\u003e, \u003ccode\u003esticky note\u003c\/code\u003e, \u003ccode\u003ehttp request\u003c\/code\u003e, and \u003ccode\u003emanual trigger\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations\u003c\/strong\u003e:\n    \u003cul\u003e\n      \u003cli\u003e\n\u003cstrong\u003eRewind HTTP API\u003c\/strong\u003e via “Claim approved job” and “Report outcome” using \u003cstrong\u003eRewind worker Header Auth\u003c\/strong\u003e.\u003c\/li\u003e\n      \u003cli\u003e\n\u003cstrong\u003eSupabase\u003c\/strong\u003e via \u003cstrong\u003eRead current resource\u003c\/strong\u003e and \u003cstrong\u003eConditional restore\u003c\/strong\u003e using \u003cstrong\u003eSupabase apikey Header Auth\u003c\/strong\u003e.\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003ePrerequisites\u003c\/strong\u003e: a Rewind account, a registered Supabase row captured with Rewind, installed connector RPCs, and separate worker\/server credentials stored in n8n.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46164233486515,"sku":"N8N-20469","price":2.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/dxuizPzi2OaWc8xkx21uj_I8g7WwSH.png?v=1791278595","url":"https:\/\/buyflowscripts.com\/products\/n8n-workflow-restore-supabase-row-updates-via-rewind-http-api","provider":"N8N Commerce","version":"1.0","type":"link"}