Skip to main content
PATCH
Change the renewal 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
amount_field
string | null

The opportunity custom field that holds the renewal amount (a number, decimal or currency field, a /v1/fields key); null for the standard amount field

forecast
Forecast · object

The forecast settings to change; those left out stay

risks
RiskInput · object[]

The whole list the forecast looks for, replacing the saved one: Statisfy's risks to keep, by name, and the workspace's own (at most 40) with their definitions. A Statisfy risk left out is removed; at least one risk stays

segment
ConditionInput · object

The opportunities that are renewals: a condition on an opportunity field or its account's, or an and or or group of them, as GET returns it. It replaces the saved segment

Response

200 - application/json

Successful Response

amount_field
string | null
required

The opportunity field that holds the renewal amount (a /v1/fields key). Null: the standard amount field

forecast
Forecast · object | null
required

The renewal forecast. Null until renewal forecasting is first switched on

risks
Risk · object[]
required

The risks the forecast looks for: Statisfy's own, less any the workspace removed, then the workspace's. Empty until renewal forecasting is first switched on

segment
ConditionView · object
required

The opportunities that are renewals: a condition on an opportunity field or its account's, or an and or or group of them, as notification rules give their conditions. Null: none chosen yet