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.

MethodAddressNeeds
PATCH/v1/api/leads/{leadId}leads.update

Body (JSON)

NameTypeDescription
namestringFull name, 2 to 120 characters.
phonestringWith or without the country code, e.g. 9876500001.
emailstringEmail address.
whatsappstringWhatsApp number, if different from the phone.
alternatePhonestringA second number.
city, statestringLocation.
priorityHOT | WARM | COLDHow warm the lead is.
tagsstring[]Up to 10 short tags.
expectedValuenumberWorth, in rupees.
stageIduuidFrom GET /stages. Left out on create: the default stage.
sourceId, productIduuid or nullFrom 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.
nextFollowUpAtISO date-time or nulle.g. 2026-10-20T10:30:00+05:30.
customFieldsobjectYour own fields by key, e.g. { "qualification": "B.Tech" }.
reasonIduuid or nullWhy, 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"
  }
}

Something missing or unclear? Tell us and we will fix this page.