PATCH - Update Lead
Modify/update fields in an existing lead.
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
}
Last updated