AutomationFlowsMarketing & Ads › Venuedesk — Api: Edit Lead

Venuedesk — Api: Edit Lead

VenueDesk — API: Edit Lead. Uses postgres. Webhook trigger; 3 nodes.

Webhook trigger★☆☆☆☆ complexity3 nodesPostgres
Marketing & Ads Trigger: Webhook Nodes: 3 Complexity: ★☆☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "VenueDesk \u2014 API: Edit Lead",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "edit-lead",
        "authentication": "none",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "wh-edit-lead-01",
      "name": "Webhook: Edit Lead",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -400,
        200
      ],
      "credentials": {}
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "UPDATE leads SET\n  venue_name   = COALESCE(NULLIF($2, ''), venue_name),\n  venue_type   = COALESCE(NULLIF($3, ''), venue_type),\n  contact_name = COALESCE(NULLIF($4, ''), contact_name),\n  email        = COALESCE(NULLIF($5, ''), email),\n  phone        = COALESCE(NULLIF($6, ''), phone),\n  website_url  = COALESCE(NULLIF($7, ''), website_url),\n  notes        = COALESCE($8, notes)\nWHERE id = $1::uuid\nRETURNING *;",
        "options": {
          "queryReplacement": "={{ [\n  $('Webhook: Edit Lead').first().json.body.id,\n  $('Webhook: Edit Lead').first().json.body.venue_name   || '',\n  $('Webhook: Edit Lead').first().json.body.venue_type   || '',\n  $('Webhook: Edit Lead').first().json.body.contact_name || '',\n  $('Webhook: Edit Lead').first().json.body.email        || '',\n  $('Webhook: Edit Lead').first().json.body.phone        || '',\n  $('Webhook: Edit Lead').first().json.body.website_url  || '',\n  ($('Webhook: Edit Lead').first().json.body.notes !== undefined\n    ? $('Webhook: Edit Lead').first().json.body.notes\n    : null)\n] }}"
        }
      },
      "id": "db-edit-lead-01",
      "name": "DB: Update Lead",
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        -160,
        200
      ],
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ success: true, lead: $json }) }}",
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "Access-Control-Allow-Origin",
                "value": "*"
              }
            ]
          }
        }
      },
      "id": "re-edit-lead-01",
      "name": "Respond: OK",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        80,
        200
      ]
    }
  ],
  "connections": {
    "Webhook: Edit Lead": {
      "main": [
        [
          {
            "node": "DB: Update Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DB: Update Lead": {
      "main": [
        [
          {
            "node": "Respond: OK",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": false
  },
  "versionId": "ed1t-1ead-0001-0000-000000000001",
  "id": "EditLeadWF01",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

VenueDesk — API: Edit Lead. Uses postgres. Webhook trigger; 3 nodes.

Source: https://github.com/AndyJay72/VenueDesk/blob/main/n8n-workflows/EditLeadWF.json — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Marketing & Ads

VenueDesk — API: Update Lead Status. Uses postgres. Webhook trigger; 6 nodes.

Postgres
Marketing & Ads

Vendor Lead - Log WhatsApp Click. Uses postgres, whatsApp. Webhook trigger; 3 nodes.

Postgres, WhatsApp
Marketing & Ads

This workflow automates bulk email campaigns with built-in validation, deliverability protection, and smart send-time optimization.

HTTP Request, Postgres, Gmail
Marketing & Ads

get-data-for-marketting-dashboard. Uses postgres, googleAnalytics, httpRequest. Webhook trigger; 20 nodes.

Postgres, Google Analytics, HTTP Request
Marketing & Ads

Enrich person L3. Uses executeWorkflowTrigger, postgres, perplexity, httpRequest. Webhook trigger; 12 nodes.

Execute Workflow Trigger, Postgres, Perplexity +1