Skip to main content
POST
Count the accounts a bulk update would set

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

200 - application/json

Successful Response

hard_ceiling
integer
required

The most accounts one bulk update takes

matched_count
integer
required

The accounts a start would run over now