PATCH /leads/{leadId}: change a lead
Send only what changes. Moving the stage works the same as in the app.
Send only what changes. Moving the stage works the same as in the app.
| Method | Address | Needs |
|---|---|---|
| PATCH | /v1/api/leads/{leadId} | leads.update |
Body (JSON)
| Name | Type | Description |
|---|---|---|
| name | string | Full name, 2 to 120 characters. |
| phone | string | With or without the country code, e.g. 9876500001. |
| string | Email address. | |
| string | WhatsApp number, if different from the phone. | |
| alternatePhone | string | A second number. |
| city, state | string | Location. |
| priority | HOT | WARM | COLD | How warm the lead is. |
| tags | string[] | Up to 10 short tags. |
| expectedValue | number | Worth, in rupees. |
| stageId | uuid | From GET /stages. Left out on create: the default stage. |
| sourceId, productId | uuid or null | From GET /sources and GET /products. |
| ownerId | "auto", uuid or null | "auto" lets your assignment rules choose; null leaves it unassigned. Left out on create: the member the key acts as. |
| nextFollowUpAt | ISO date-time or null | e.g. 2026-10-20T10:30:00+05:30. |
| customFields | object | Your own fields by key, e.g. { "qualification": "B.Tech" }. |
| reasonId | uuid or null | Why, when moving to a Nurture, Lost or Junk stage. |
- A stage that needs a reason answers 400 with a field error on
reasonId. A stage that needs a file can't be reached through the API: move it in the app. - Send null (or an empty string) to clear a value; leave a field out to keep it.
Example request
curl -X PATCH "https://api.crm.thevisionsage.com/v1/api/leads/01a147f9-6d70-7000-8b7d-808b3dce7f7c" \
-H "Authorization: Bearer vsa_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"stageId": "01a147f9-6d27-7000-a5a9-318c85c28176",
"nextFollowUpAt": "2026-10-20T10:30:00+05:30"
}'Example response
{
"success": true,
"message": "Lead updated.",
"data": {
"id": "01a147f9-6d70-7000-8b7d-808b3dce7f7c",
"name": "Priya Sharma",
"email": "priya@example.com",
"phone": "9876500001",
"whatsapp": null,
"alternatePhone": null,
"city": "Chennai",
"state": "Tamil Nadu",
"priority": "WARM",
"tags": [
"weekend-batch"
],
"expectedValue": 45000,
"doNotCall": false,
"doNotEmail": false,
"customFields": {},
"stage": {
"id": "01a147f9-6d27-7000-a5a9-318c85c28176",
"name": "New",
"color": "blue",
"category": "NEW"
},
"source": {
"id": "01a147f9-6d27-701d-9dac-ff4c718ab99a",
"name": "Google Ads"
},
"product": {
"id": "01a147f9-6d27-7030-a111-0a5b5f1c0001",
"name": "Data Science"
},
"owner": {
"id": "01a147f9-6d26-7000-9981-c1af9ae45fc1",
"name": "Asha Admin",
"email": "asha@example.com"
},
"nextFollowUpAt": null,
"returnedAt": null,
"stageChangedAt": "2026-10-17T03:48:11.247Z",
"closedAt": null,
"enquiryCount": 1,
"createdAt": "2026-10-17T03:48:11.247Z",
"updatedAt": "2026-10-17T03:48:11.248Z"
}
}Read next
Something missing or unclear? Tell us and we will fix this page.