Skip to main content
PATCH
Update a lead

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Path Parameters

uuid
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
first_name
string | null
last_name
string | null
email
string | null

Valid email address. Surrounding whitespace is removed and letter casing is preserved. Send null or a blank string to clear it.

phone_number
string | null

Valid international or national phone number. National values use the company's configured country and are stored in E.164 format. Send null or a blank string to clear it.

company_name
string | null
source
string
status
enum<string>

Moving a lead to converted (Accepted) or rejected applies that status's form (getLeadStatusForms lists each form's mode, fields and reason). When the company has made the form Required, every required field of the form (custom fields in the lead_acceptance / lead_rejection category) and its reason, when required, must be filled in: send them in custom_fields / accepted_reason / rejected_reason in the same request, or the update is refused with 400 validation_error naming each missing field. Leaving Accepted or Rejected clears that form's answers and its reason.

Available options:
new,
converted,
rejected
rejected_reason
string | null

The Rejected form's built-in reason. Shown to the partner in the portal and the rejection email when the lead is rejected, unless the company hides it. Saved only while the lead is or becomes rejected; otherwise refused with not_accessible, unless it equals the stored value (no change). Ignored when the same request moves the lead out of rejected (leaving clears it).

Maximum string length: 2000
accepted_reason
string | null

The Accepted form's built-in reason. Shown to the partner in the portal and the Lead accepted notification when the lead is accepted (status converted), unless the company hides it. Saved only while the lead is or becomes converted; otherwise refused with not_accessible, unless it equals the stored value (no change). Ignored when the same request moves the lead out of converted (leaving clears it).

Maximum string length: 2000
direction
enum<string> | null
Available options:
received,
sent
custom_fields
object[]

Custom field values saved with this update, by field uuid: lead fields (category lead) and the answers to the lead's status form (category lead_acceptance while the lead is or becomes converted, lead_rejection while it is or becomes rejected). Status-form answers go in the same request as the status change they belong to. A status-form field of another status is refused with not_accessible.

Maximum array length: 100

Response

200 - application/json

Default Response

uuid
string
required
first_name
string | null
required
last_name
string | null
required
email
string | null
required
phone_number
string | null
required
company_name
string | null
required
source
string
required
status
enum<string>
required
Available options:
new,
converted,
rejected
rejected_reason
string | null
required

The Rejected form's built-in reason. Shown to the partner in the portal and the rejection email when the lead is rejected, unless the company hides it. Cleared when the lead leaves Rejected.

accepted_reason
string | null
required

The Accepted form's built-in reason. Shown to the partner in the portal and the Lead accepted notification when the lead is accepted (status converted), unless the company hides it. Cleared when the lead leaves Accepted.

direction
string | null
required
partner
object | null
required
created_by
object | null
required
tags
object[]
required
assigned_users
object[]
required
custom_fields
object[]
required

Values of the lead's custom fields (category lead).

status_form_fields
object[]
required

Answers to the form of the lead's current status: lead_acceptance fields while it is converted (Accepted), lead_rejection fields while it is rejected, empty otherwise. Includes internal (non-shared) fields. Write them with custom_fields on the lead update or the lead custom-field endpoints.

created_at
string
required
updated_at
string
required