Skip to main content
POST
Change a renewal's forecast field

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

opportunity_id
string
required

The renewal's opportunity id

Example:

"1042"

field
enum<string>
required

probability (Renewal Forecast, 0-100), expected_amount (Renewal Expected Amount, 0 or more), decision (Renewal Decision: renewing or not_renewing) or risks (Renewal Risks, a list of risk names)

Available options:
probability,
expected_amount,
decision,
risks
Example:

"probability"

Body

application/json
value
any
required

The new value, in the field's type: a number for probability and expected_amount, renewing or not_renewing for decision, a list of risk names for risks. null clears it. Required

Example:

60

base_value
any

The value you are replacing, as you last read it, in the same type as value. Compared with what is stored: if someone changed it since, nothing is saved (409). Left out means it was empty

Example:

75

hold_days
integer | null

How many days the AI leaves your value (0: it may update it on its next run). Leave out hold_days and hold_until for the workspace default; on a field the AI has never written, no hold

Required range: 0 <= x <= 365
Example:

30

hold_until
string<date-time> | null

Instead of hold_days: when the hold ends, with a timezone offset, at most 365 days ahead

Example:

"2026-12-31T00:00:00Z"

reason
string | null

Why: the next assessment reads it. Required unless the field's edit policy says otherwise

Maximum string length: 5000
Example:

"Champion left last week."

Response

200 - application/json

Successful Response

changed
boolean
required

Whether the value moved: false when it already held what you sent

field
enum<string>
required

The field edited

Available options:
probability,
expected_amount,
decision,
risks
Example:

"probability"

held_until
string<date-time> | null
required

Until when the AI leaves your value; null when it may update it on its next run

Example:

"2026-12-31T00:00:00Z"

opportunity_id
string
required

The renewal's opportunity id

Example:

"1042"