Skip to main content
PATCH
Change the HubSpot config

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
changes
Changes · object

The top-level settings to change, each with its whole new value (see GET /config for the keys). A key you leave out stays as it is; null removes a key. Empty: nothing changes

expected_version
integer | null

The config version you read. Sent: a change against a version that is no longer live is a 409 and writes nothing (0 = the config was never saved). Left out, the version this call reads is used, so a change saved between that read and this write is still a 409: read again and retry

Required range: x >= 0
validate_with_api
boolean
default:false

Also check each filter and field against the tenant's CRM before saving

Response

200 - application/json

Successful Response

The HubSpot settings, by top-level key, with their version.

configuration
Configuration · object
required

The settings, by top-level key, as the app's settings page saves them

source
enum<string>
required

database: saved in Statisfy. code: never saved, Statisfy's built-in config runs. none: no config

Available options:
database,
code,
none
version
integer
required

The config's version: send it as expected_version with a change (0 = never saved)