Skip to main content
PUT
Override an AI field on an opportunity

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

The AI field's key, as GET /v1/fields lists it. An account's type the AI manages is one too

Required string length: 1 - 255
Example:

"renewal_forecast"

opportunity_id
string
required

The opportunity's Statisfy id

Required string length: 1 - 255

Body

application/json
base_value
any

The value you read before this edit (the record's fields, or the newest history row). It is always compared: when the field has moved since, nothing is saved and the 409 says what it is now. Left out means you read it empty

lock_days
integer | null

How many days the AI leaves your value alone. 0 saves it and lets the AI update it on its next run. Left out, with no locked_until: your workspace's default when the AI has written the field, no hold on a field it has not

Required range: 0 <= x <= 365
locked_until
string<date-time> | null

Instead of lock_days: when the hold ends, with a timezone offset, at most a year ahead

reason
string | null

Why you are changing it. Required unless the field asks for none; the AI reads it before its next pass

Maximum string length: 5000
value
any

The new value, in the field's own type (a number, text, a date, a picklist option, a list for a multi-select). Required: send null to clear the field, which is an edit too

Response

200 - application/json

Successful Response

changed
boolean
required

Whether the value moved; false when you saved the value it already had

field_key
string
required
locked_until
string<date-time> | null

When the AI may update the field again; null when it is not held