Partially updates a lead
Same contract as the company and equipment PATCH: send the properties to change and name each one in UpdatedFields. Unlisted properties keep their current values; a listed property left out of the body is set to its empty value. AssignedReasonIds, when listed, replaces the lead's reasons; Udfs, when listed with at least one value, replaces its user-defined fields. Otherwise the update behaves exactly like PUT, including the optional `X-On-Behalf-Of` header.
/api/v2/leads/{leadId}Authentication
Choose one supported method for this request.
Parameters
leadIdpathinteger · int32requiredThe ID of the lead to update.
X-On-Behalf-Ofheaderstring · emailEmail of an active user to act as. That user is recorded as the owner/author of what this request writes. Only client_credentials tokens may send it (others get 403); an email that matches no active user gets 400.
Request body
The properties to change.
updatedFieldsstring[]requiredleadIdinteger · int32ownerIdinteger · int32descriptionstringcommentsstringstatusIdinteger · int32sourceIdinteger · int32sourcestringnullablesourceLocationIdinteger · int32assignedReasonIdsinteger[]companyNamestringaddress1stringaddress2stringcitystringzipstringstatestringcountrystringcountystringfaxstringwebstringcompanyPhonestringcompanyIdinteger · int32contactIdinteger · int32titlestringpositionstringfirstNamestringlastNamestringdepartmentstringphonestringcellstringemailstringsourceUrlstringsourcePagestringbranchIdinteger · int32makestringmodelstringequipmentTypestringenterTypestring
Responses
Lead updated successfully.
isSuccessmessageerrorsdataRead the result from data. When isSuccess is false, errors lists what went wrong. Handling errors
recordTypestringnullableleadIDinteger · int32nullableownerIDinteger · int32nullablestatusIDinteger · int32nullablesourceIDinteger · int32nullablesourcestringnullablesourceLocationIDinteger · int32nullablesourceLocationstringnullableratingstringnullabledescriptionstringnullablecompanyIDinteger · int32nullablecompanyNamestringnullableaddress1stringnullablecitystringnullablestatestringnullablezipstringnullablecountystringnullablecountrystringnullablecontactIDinteger · int32nullablecontactNamestringnullablefirstNamestringnullablelastNamestringnullableemailstringnullablephonestringnullablecellstringnullableequipmentIDinteger · int32nullablemakestringnullablemodelstringnullableserialNostringnullablestockNostringnullableyearstringnullablehoursinteger · int32nullableattachmentsstringnullabledeletedbooleannullableownerNamestringnullablestatusNamestringnullablecommentsstringnullabledateAssignedstring · date-timenullabledateAcknowledgedstring · date-timenullabledateConvertedstring · date-timenullableaddress2stringnullablefaxstringnullabletitlestringnullablepositionstringnullablecompanyPhonestringnullablewebstringnullabledepartmentstringnullablefavoritebooleannullableassignedReasonIDsinteger[]nullablestrAssignedReasonsstring[]nullableassignedReasonsDisplaystringnullablelatitudenumber · doublenullablelongitudenumber · doublenullableequipmentTypestringnullablesourceUrlstringnullablesourcePagestringnullablebranchstringnullableassociatedQuoteinteger · int32nullableidentifierstringnullablebranchIDinteger · int32nullableclosedbooleannullablecanAcknowledgeboolean