LogoLogo
Support
  • Bizmate CRM Partner API
    • Overview
    • Authentication
    • Base URL
    • Leads
      • POST - Create Lead
      • GET - Retrieve Lead by ID
      • GET - Retrieve List of Leads
      • PATCH - Update Lead
      • POST - Upload Files
    • Deals
      • GET - Retrieve Deal by ID
      • GET - Retrieve List of Deals
    • Response Codes
    • Lead Status
    • Deal Status
  • BIZMATE PORTAL GUIDE
    • Overview
    • Submitting Leads
    • Other Tips & Resources
    • FAQs
  • Support
    • United Kingdom Support
    • New Zealand Support
    • Australia Support
    • Bizmate Partner Portal
Powered by GitBook
LogoLogo

Support

  • UK Support
  • NZ Support
  • AU Support
  • Bizmate Partner Portal

Copyright © Zwab Ventures PTY LTD (ACN 625 682 831), Bizcap NZ Limited (NZBN 9429048276863) and Bizcap AU Pty Ltd (ACN 633 927 090) of PO Box 195, Balaclava VIC 3183

On this page
Export as PDF
  1. Bizmate CRM Partner API
  2. Leads

PATCH - Update Lead

Modify/update fields in an existing lead.

PreviousGET - Retrieve List of LeadsNextPOST - Upload Files

Last updated 1 month ago

Update a Lead

Method: PATCH

Endpoint: /LEAD/{leadid}

Headers:

Name
Value

Content-Type

application/json

Authorization

Bearer <API TOKEN>

Since it’s a PATCH method, we can specify only the datapoints that have changed and not the whole raw data. For example, if we would like to change the last name of a lead, below can be used:

All of the datapoints in the POST lead method are available to be updated via the PATCH method.

Example Request (JavaScript - Fetch):

const myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer <API TOKEN>");

const requestOptions = {
  method: "GET",
  headers: myHeaders,
  redirect: "follow"
};

fetch("https://bizmate.fasttask.net/api/v1/lead/{{leadid}}", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Example Request (cURL):

curl --location 'https://bizmate.fasttask.net/api/v1/lead/{{leadid}}' \
--header 'Authorization: Bearer <API TOKEN>'

Response

{
  "id": 1,
  "name": "John",
  "age": 30
}
{
  "error": "Invalid request"
}