⚒️ Build an endpoint to perform CRUD operations with multiple HTTP methods

4,680 views · ⚒️ Engineering

Description

This n8n workflow template allows you to create a CRUD endpoint that performs the following actions:

This template is connected with Airtable but you can replace the Airtable nodes with anything you need to interact with (e.g. Postgres, MySQL, Notion, Coda…).

The template uses the n8n Webhook node setting ‘Allow Multiple HTTP Methods’ to enable multiple HTTP methods on the same node.

Features

Workflow Steps

Getting Started

To deploy and use this template:

  1. Import the workflow into your n8n workspace
  2. Customize the endpoint paths by tweaking the ‘Path’ parameters in the ‘Webhook’ and ‘Webhook (with ID)’ nodes (currently customers)
  3. Set up your Airtable credentials by following this guide and customize the Airtable nodes by selecting your base, table, and the correct fields to update. …or… replace the Airtable nodes and connect the endpoint to any other service (e.g. Postgres, MySQL, Notion, Coda)

How to use the workflow

  1. Activate the workflow
  2. Connect your app to the endpoints (production URLs) to perform the various operations allowed by the workflow

Note that the Webhook nodes have two URLs, one for testing and one for production. The testing URL is activated when you click on ‘Test workflow’ button and can’t be used for production. The production URL is available after you activate the workflow. More info here.

Feel free to get in touch with me if you have questions about this workflow.

🔗 Nodes Used

Airtable, Webhook

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup