Skip to navigation

Change a lead

Send only what changes. Custom fields are merged, not replaced. The answer is the lead plus changes — what moved from what to what.

Path parameters

lead_idstringRequired

Request

A lead to create or change. Send only what you have; custom fields go inside fields.

namestring or nullOptional
phonestring or nullOptional

Indian numbers in any common shape: 9876543210, +91 98765 43210.

emailstring or nullOptional
external_idstring or nullOptional

Your id for the person (customer no., loan no., employee id) — the best key to upsert on.

companystring or nullOptional
citystring or nullOptional
stage_idstring or nullOptional

From GET /crm/stages.

pipeline_idstring or nullOptional

From GET /crm/pipelines; without stage_id the lead goes to that pipeline’s first stage.

owner_user_idstring or nullOptional
tagslist of strings or nullOptional
scoreinteger or nullOptional0-100
score_labelenum or nullOptional
Allowed values:
expected_close_atstring or nullOptional
probabilityinteger or nullOptional0-100
lost_reasonstring or nullOptional
next_action_atstring or nullOptional
consentobject or nullOptional
fieldsobject or nullOptional

Custom fields by key or by label, in any case (GET /crm/fields lists them): {“Zone”: “Madhapur”}.

sourcestring or nullOptional

On create only: a short lower-case word (default “api”).

source_detailobject or nullOptional

On create only, e.g. {“form”: “Contact us”}.

on_conflictenum or nullOptional

When the person is already a lead: error (default, 409), update, or ignore.

Allowed values:
match_onlist of enums or nullOptional

What makes two leads the same person (default all three, in that order).

Allowed values:
create_missing_fieldsboolean or nullOptional
Custom field names that don't exist become text fields instead of a 400.

Response

Successful Response
idstring
namestring or nullOptional
phonestring or nullOptional
emailstring or nullOptional
external_idstring or nullOptional
companystring or nullOptional
citystring or nullOptional
sourcestring or nullOptional
stageobject or nullOptional
pipeline_idstring or nullOptional
owner_user_idstring or nullOptional
tagslist of stringsOptionalDefaults to []
scoreinteger or nullOptional
score_labelstring or nullOptional
fieldsobjectOptionalDefaults to {}
consentobjectOptionalDefaults to {}
deal_valuedouble or nullOptional
last_call_atstring or nullOptional
last_call_outcomestring or nullOptional
created_atstring or nullOptional
updated_atstring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error