Skip to main content
POST
Set one custom field on every account a filter selects

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.

Body

application/json
fields
Fields · object
required

Exactly one custom field key and the value to set, as a PATCH takes it; null clears it

Example:
list_type
enum<string>
required

Which accounts, as the app's Accounts page picks them; all_customers is a 403 for a role that sees only its book. A role that sees only its book updates only the accounts on its book, as its PATCH does, on every tab

Available options:
my_book,
team_book,
all_customers,
unset,
other,
churned
Example:

"my_book"

customer_types
string[]

The account types tab, as the app sends it. Empty: the workspace's configured types

Maximum array length: 50
Example:
filter
Filter · object

The list's filter[<key>][<op>]=<value> as an object, all ANDed. Empty adds no condition: the accounts of list_type (and of view_id, when sent)

Example:
view_id
integer | null

Only the records this saved view or segment selects (GET /v1/views lists them); other filters narrow them further

Required range: x >= 1

Response

202 - application/json

Successful Response

already_set
integer
required

Accounts that already held the value

error
string | null
required

Why a REJECTED or FAILED run stopped

failed
integer
required
field
string
required

The custom field key the run sets

finished_at
string<date-time> | null
required
id
integer
required
kept_newer
integer
required

Accounts changed by someone else after the run started, left as they were

processed
integer
required
started_at
string<date-time> | null
required
state
enum<string>
required

PROCESSED, REJECTED (refused when it ran, e.g. the value no longer fits) and FAILED are final

Available options:
NEW,
SNAPSHOTTING,
IN_PROGRESS,
PROCESSED,
REJECTED,
FAILED
total_targeted
integer | null
required

The accounts the run froze; null before it starts

updated
integer
required
has_more
boolean
default:false
next_cursor
string | null
results
BulkUpdateRecordResult · object[] | null

Once PROCESSED: each frozen account in order, with its outcome; a page of them