Skip to main content
PATCH
Update a field definition: name, visibility, requiredness, CRM push and the field editor's settings

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer stfy_live_…. See Authentication for how to get one and which scopes it needs.

Path Parameters

field_key
string
required

Query Parameters

object
string
required

The object the field belongs to: one of account, contact, opportunity, project, task, user, or a custom object's key (GET /v1/objects lists them)

Body

application/json
ai_field
boolean | null

True makes the field maintained by AI (its owner reads ai); false makes it an ordinary field again. Not on a formula field.

decimal_places
integer | null

A float or percent field's decimal places

Required range: 0 <= x <= 15
destinations
PushDestination · object[] | null

Where a value of this field is pushed: replaces the list, [] removes every destination. One per CRM; only an account field pushes to more than one CRM, and never to both Salesforce and HubSpot. A Salesforce, HubSpot or Gainsight field pushes only to its own CRM (a 400); a project's or a task's field has none (a 422).

Maximum array length: 3
display_name
string | null
Required string length: 1 - 255
downstream_field
string | null

On a Salesforce or HubSpot field: the key of the Statisfy custom field on the same object that its CRM value is also saved into; null clears it

Maximum string length: 255
editable
boolean | null

A custom field's edit lock in the app: false stops people editing the value there. On a CRM field, true also lets Statisfy push edits back to the CRM.

formula
EquationFormula · object

A formula: EQUATION (an expression over this record's fields, e.g. {arr} * 1.1), ROLLUP (aggregate a field of related records), CROSS_OBJECT (copy a field of one related record) or TIME_CALCULATION (time since, until or between dates). GET /v1/formulas/functions lists the expression functions.

hidden
boolean | null
mandatory
boolean | null

Response

200 - application/json

Successful Response

key
string
required
kind
enum<string>
required
Available options:
standard,
custom
label
string
required
type
string
required
currency_code
string | null
decimal_places
integer | null

On a float or percent field: the decimal places shown

destinations
PushDestination · object[]

The CRM fields a value of this field is pushed to, one per CRM

downstream_field
string | null

On a Salesforce or HubSpot field: the Statisfy field its CRM value is also saved into

editable
boolean
default:false

The app's edit lock: false when people cannot edit the value in the app

formula
Formula · object | null

Set on a formula field: how its value is computed, in the shape formula takes on POST /v1/fields

hidden
boolean
default:false
lifecycle_stages
LifecycleStageDef · object[] | null

On a lifecycle_stage field: its stages, in order

mandatory
boolean
default:false
object
string | null

The object whose id(s) the value holds: set on reference fields (one id) and on id lists such as a contact's accounts (type text_list)

option_labels
Option Labels · object | null
options
string[] | null
owner
enum<string>
default:statisfy
Available options:
statisfy,
crm,
warehouse,
integration,
ai,
computed
pill_options
PillOptionDef · object[] | null

On a pill field: its coloured options

source
string | null

The system the field comes from, such as SALESFORCE, HUBSPOT or GAINSIGHT; null for Statisfy's own

syncs_to_crm
boolean
default:false
writable
boolean
default:false