Skip to main content
PATCH
Update a custom field definition

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
label
string
shared
boolean

Whether this field is visible to partners in the portal. A partner file field is company-only: shared true is refused with 400 validation_error.

required
boolean
locked
boolean

Whether only the company can set this field's value. Only lead, lead_deal, lead_acceptance and lead_rejection fields can be locked; setting locked to true on any other category is refused with 400 validation_error.

supporting_partners_can_see
boolean

Whether an active supporting (co-sell) partner on a deal can see this field: its value, its files and writing it. Default true. When false, a supporting partner never receives the value (it is left out of deal reads and notifications), cannot download its files and is refused with 400 validation_error (not_accessible) when it sends one; the company, the deal's primary partner and a distributor see and write it as usual. Has an effect on lead_deal and lead fields only (a supporting partner sees a lead field's value only as deal rule context).

description
string | null
Maximum string length: 500
Maximum string length: 2048
Maximum string length: 100

Response

200 - application/json

Default Response

uuid
string
required
label
string
required
type
enum<string>
required
Available options:
text,
textarea,
email,
website,
phone,
number,
date,
boolean,
checkbox,
select,
multi_select,
file
category
enum<string>
required

Entity the field belongs to: partner, lead, lead_deal or contact. lead_acceptance and lead_rejection are the forms filled in when a lead moves to Accepted (status converted) or Rejected; their values belong to the lead. Status-form fields are one form per company: partner_type does not apply to them.

Available options:
lead,
partner,
lead_deal,
contact,
lead_acceptance,
lead_rejection
partner_type
enum<string> | null
required

Which partner type can see this field. On lead_acceptance / lead_rejection fields it is a stored default with no effect.

Available options:
referral,
reseller,
distributor
options
object[] | null
required
description
string | null
required
shared
boolean
required
required
boolean
required
locked
boolean
required

Whether only the company can set this field's value. A shared locked field is shown to partners read-only and is never on partner add or import forms, status forms or public forms; partner writes to it are refused. A locked field that is not shared stays internal. Only lead, lead_deal, lead_acceptance and lead_rejection fields can be locked; setting locked to true on any other category is refused with 400 validation_error.

supporting_partners_can_see
boolean
required

Whether an active supporting (co-sell) partner on a deal can see this field: its value, its files and writing it. Default true. When false, a supporting partner never receives the value (it is left out of deal reads and notifications), cannot download its files and is refused with 400 validation_error (not_accessible) when it sends one; the company, the deal's primary partner and a distributor see and write it as usual. Has an effect on lead_deal and lead fields only (a supporting partner sees a lead field's value only as deal rule context).

created_at
string
required
updated_at
string
required