Skip to main content
PATCH
Update a partnership lead

Authorizations

Authorization
string
header
required

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

Path Parameters

partnershipId
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)$
leadId
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
company_name
string | null
first_name
string | null
last_name
string | null
email
string | null
phone_number
string | null
rejected_reason
string | null

The Rejected form's reason, saved only with the move to rejected and only when the company shows it to partners. Sent at any other time (or when hidden) it is refused with 400 not_accessible, unless it equals the value you can already read for the lead (null when hidden or not rejected), which is a no-op.

Maximum string length: 2000
accepted_reason
string | null

The Accepted form's reason, saved only with the move to converted (Accepted) and only when the company shows it to partners. Sent at any other time (or when hidden) it is refused with 400 not_accessible, unless it equals the value you can already read for the lead (null when hidden or not converted), which is a no-op.

Maximum string length: 2000
status
enum<string>

Moving a lead to converted (Accepted) or rejected applies that status's form (see status_forms in getPartnerLeadRequirements). Its shared fields go in custom_field_values and its reason in accepted_reason / rejected_reason, in the same request. When the form is Required, a missing required shared field or required reason is refused with 400 validation_error naming it. Leaving Accepted or Rejected clears that form's answers and reason.

Available options:
new,
converted,
rejected
tag
object
custom_field_values
object[]

Shared lead custom field values, by field uuid. Also carries the answers to a status form's shared fields (lead_acceptance with the move to converted, lead_rejection with the move to rejected); any other status-form field is refused with not_accessible.

distributor
object

Response

Default Response

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

The Rejected form's reason: set only while the lead is rejected and the company shows it to partners, else null.

accepted_reason
string | null
required

The Accepted form's reason: set only while the lead is converted (Accepted) and the company shows it to partners, else null.

partnership_id
string | null
required
campaign_id
string | null
required
campaign_title
string | null
required
partnership
object | null
required
tags
object[]
required
assigned_users
object[]
required
assigned_contacts
object[]
required
lead_deals
object[]
required
custom_fields
object[]
required
has_quote
boolean
required
status_form_fields
object[]
required

Answers to the shared fields of the current status's form: lead_acceptance while converted (Accepted), lead_rejection while rejected, empty otherwise.

id
string
required
lock_lead_status
boolean

True when the calling partnership may not change this lead's status, rejected_reason or accepted_reason; updatePartnerLead returns 403 for such a change.