API reference
All operations
LEADS

Replaces an existing lead.

This is a full replace: properties left out of the body are set to their empty value. `AssignedReasonIds` replaces the lead's reasons (an empty list removes them all); `Udfs` replaces its user-defined fields, and an empty list leaves them unchanged. Company fields are saved only when `CompanyId` is 0, and contact fields only when `ContactId` is 0; otherwise they come from the linked company or contact. The request is checked against the lead field rules configured for your crmSeries account. An unacknowledged lead is acknowledged by the update, so a later `POST /acknowledge` returns 400. Changing `OwnerId` restarts the lead's assigned date, clears its acknowledgement and notifies the new owner. A client_credentials caller may send the `X-On-Behalf-Of` header with a user's email; that user is then recorded as having modified (and, if not yet acknowledged, acknowledged) the lead.

PUT/api/v2/leads/{leadId}

Authentication

Choose one supported method for this request.

OAuth 2.0 client credentials

Parameters

leadIdpathinteger · int32required

The ID of the lead to update. Must be greater than zero.

X-On-Behalf-Ofheaderstring · email

Email 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

application/jsonrequired

The lead's complete new values. Set `LeadId` to the same ID as `leadId`: the body value selects the lead that is updated.

UpdateLeadRequest
  • leadIdinteger · int32
  • ownerIdinteger · int32
  • descriptionstring
  • commentsstring
  • statusIdinteger · int32
  • sourceIdinteger · int32
  • sourcestringnullable
  • sourceLocationIdinteger · int32
  • assignedReasonIdsinteger[]
  • companyNamestring
  • address1string
  • address2string
  • citystring
  • zipstring
  • statestring
  • countrystring
  • countystring
  • faxstring
  • webstring
  • companyPhonestring
  • companyIdinteger · int32
  • contactIdinteger · int32
  • titlestring
  • positionstring
  • firstNamestring
  • lastNamestring
  • departmentstring
  • phonestring
  • cellstring
  • emailstring
  • sourceUrlstring
  • sourcePagestring
  • branchIdinteger · int32
  • makestring
  • modelstring
  • equipmentTypestring
  • enterTypestring

Responses

Lead updated successfully.

Standard response envelopeisSuccessmessageerrorsdata

Read the result from data. When isSuccess is false, errors lists what went wrong. Handling errors

dataLeadDetailsDto
  • recordTypestringnullable
  • leadIDinteger · int32nullable
  • ownerIDinteger · int32nullable
  • statusIDinteger · int32nullable
  • sourceIDinteger · int32nullable
  • sourcestringnullable
  • sourceLocationIDinteger · int32nullable
  • sourceLocationstringnullable
  • ratingstringnullable
  • descriptionstringnullable
  • companyIDinteger · int32nullable
  • companyNamestringnullable
  • address1stringnullable
  • citystringnullable
  • statestringnullable
  • zipstringnullable
  • countystringnullable
  • countrystringnullable
  • contactIDinteger · int32nullable
  • contactNamestringnullable
  • firstNamestringnullable
  • lastNamestringnullable
  • emailstringnullable
  • phonestringnullable
  • cellstringnullable
  • equipmentIDinteger · int32nullable
  • makestringnullable
  • modelstringnullable
  • serialNostringnullable
  • stockNostringnullable
  • yearstringnullable
  • hoursinteger · int32nullable
  • attachmentsstringnullable
  • deletedbooleannullable
  • ownerNamestringnullable
  • statusNamestringnullable
  • commentsstringnullable
  • dateAssignedstring · date-timenullable
  • dateAcknowledgedstring · date-timenullable
  • dateConvertedstring · date-timenullable
  • address2stringnullable
  • faxstringnullable
  • titlestringnullable
  • positionstringnullable
  • companyPhonestringnullable
  • webstringnullable
  • departmentstringnullable
  • favoritebooleannullable
  • assignedReasonIDsinteger[]nullable
  • strAssignedReasonsstring[]nullable
  • assignedReasonsDisplaystringnullable
  • latitudenumber · doublenullable
  • longitudenumber · doublenullable
  • equipmentTypestringnullable
  • sourceUrlstringnullable
  • sourcePagestringnullable
  • branchstringnullable
  • associatedQuoteinteger · int32nullable
  • identifierstringnullable
  • branchIDinteger · int32nullable
  • closedbooleannullable
  • canAcknowledgeboolean