Skip to main content

Build an endpoint to perform CRUD operations with multiple HTTP methods

Workflow preview

Workflow preview
100%
Build an endpoint to perform CRUD operations with multiple HTTP methods preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow template allows you to create a CRUD endpoint that performs the following actions: Create a new record Get a record Get many records Update a record Delete a record This template ...

Best for

  • Engineering automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.airtable, n8n-nodes-base.webhook

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Giulio.

Original n8n.io source

1.1 Workflow description

Title
Build an endpoint to perform CRUD operations with multiple HTTP methods
Workflow name
Build an endpoint to perform CRUD operations with multiple HTTP methods

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

  • Create a new record
  • Get a record
  • Get many records
  • Update a record
  • Delete a record

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

  • Just two nodes to create 5 endpoints
  • Use it with Airtable or replace the Airtable nodes for your own customization
  • Add your custom logic exploiting all n8n's possibilities

Workflow Steps

  • Webhook node: exposes the endpoints to get many records and create a new record
  • Webhook (with ID) node: exposes the endpoints to get, update, and delete a record. Due to a n8n limitation, this endpoint will have an additional code in the path (e.g. https://my.app.n8n.cloud/webhook/580ccc56-f308-4b64-961d-38323501a170/customers/:id). Keep this in mind when using these endpoints in your application
  • Various Airtable nodes: execute various specific operations to interact with Airtable records

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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 2 - Respond to Webhook1

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 3 - Respond to Webhook2

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 4 - Respond to Webhook4

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Create

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 7 - Get All

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Get Single

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Airtable

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 13 - Respond to Webhook5

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Airtable1

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 16 - Get Single1

Type / Role
n8n-nodes-base.airtable - airtable
Config choices
Version 2.1

Block 17 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 18 - Webhook (with ID)

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

3. Summary Table

Workflow Build an endpoint to perform CRUD operations with multiple HTTP methods
Complexity advanced
Nodes 18
Categories Engineering
Author Giulio
Published 23 Oct 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2490/2490.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build an endpoint to perform CRUD operations with multiple HTTP methods do?

This n8n workflow template allows you to create a CRUD endpoint that performs the following actions: Create a new record Get a record Get many records Update a record Delete a record This template ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering use case.