Skip to main content
PATCH
Change the health 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.

Body

application/json

Each part sent replaces that part; what is left out keeps its saved value.

additional_fields
AdditionalFieldIn · object[] | null

The account fields the AI reads when it rates health, replacing the saved list; [] clears it. Each field once, and an account custom field, as the app's Health settings offer them

Maximum array length: 50
instructions
InstructionChanges · object | null

New guidance for the pillars sent

relabel
boolean
default:false

true starts the job that relabels the stored health with the saved scale, as the app's re-trigger does: after a 502 said it did not start. A changed scale starts it without this

scale
ScaleLabelIn · object[] | null

The health labels, replacing the saved ones: every 7-point level in exactly one label, at least two labels, each label once. null turns the custom scale off, so /v1/health's health is the level itself. A change relabels the stored health, as a save in the app does

schedule
ScheduleIn · object | null

When account health is computed, in US/Pacific time

Response

200 - application/json

Successful Response

additional_fields
AdditionalField · object[]
required

The account fields the workspace picked for the AI to read when it rates health

instructions
Instructions · object
required

The guidance to the AI, by the pillars /v1/health returns

override_days
integer
required

How many days a manual health override holds by default: 7, 14, 30, 60 or 90

product_field
string | null
required

The account field that names the products an account uses (a /v1/fields key); null when none

scale
ScaleLabel · object[] | null
required

The workspace's health labels. Each 7-point level is in exactly one label. Null: no custom scale, so /v1/health's health is the level itself

schedule
HealthSchedule · object
required

When account health is computed, in US/Pacific time; weekly on Friday unless the workspace set another