> ## Documentation Index
> Fetch the complete documentation index at: https://help.statisfy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change a renewal's forecast field

> Overrules the AI on one renewal field through the app's own AI-field edit: `probability`, `expected_amount`, `decision` or `risks` (Renewal Size follows the expected amount, so it is not edited). Send `value` (null clears it), the `base_value` you are replacing and a `reason`, which the next assessment reads. The AI leaves your value for `hold_days` or until `hold_until` (one, not both), or by default for your workspace's hold on a field it has written and not at all on one it has not; a person's change to probability or expected_amount holds the renewal's forecast, so Re-assess is refused until the hold ends. A 409 when the stored value is no longer `base_value` (nothing is saved; read it again and retry). A 422 for a value out of range (probability 0-100, expected_amount 0 to 9223372036854775807, a finite number), of the wrong type, or a missing reason. A 404 for an unknown or deleted opportunity, or when renewal forecasting was never set up. Through the API a Member changes only the renewals on accounts in their book (403 otherwise); the app does not limit this. A digital worker's key is a 403: renewals are a person's workflow. The edit is the key's person's: a personal key or MCP login, or else the member who created the key; a key no current member stands behind is a 403. The opportunity update (PATCH /v1/objects/opportunity/records/{id}) still refuses these fields. Needs AI CSP, as Renewals does in the app: other workspaces get a 403 not_entitled.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/renewals/{opportunity_id}/fields/{field}
openapi: 3.1.0
info:
  description: >-
    The agent-first Statisfy API. Authenticate with an API key (`Authorization:
    Bearer stfy_live_…`), then call `GET /v1/meta/capabilities` to discover
    every operation and its schemas.
  title: Statisfy API
  version: 1.0.0
servers:
  - url: https://api.statisfy.com
    description: Production
security: []
paths:
  /v1/renewals/{opportunity_id}/fields/{field}:
    post:
      tags:
        - renewals
      summary: Change a renewal's forecast field
      description: >-
        Overrules the AI on one renewal field through the app's own AI-field
        edit: `probability`, `expected_amount`, `decision` or `risks` (Renewal
        Size follows the expected amount, so it is not edited). Send `value`
        (null clears it), the `base_value` you are replacing and a `reason`,
        which the next assessment reads. The AI leaves your value for
        `hold_days` or until `hold_until` (one, not both), or by default for
        your workspace's hold on a field it has written and not at all on one it
        has not; a person's change to probability or expected_amount holds the
        renewal's forecast, so Re-assess is refused until the hold ends. A 409
        when the stored value is no longer `base_value` (nothing is saved; read
        it again and retry). A 422 for a value out of range (probability 0-100,
        expected_amount 0 to 9223372036854775807, a finite number), of the wrong
        type, or a missing reason. A 404 for an unknown or deleted opportunity,
        or when renewal forecasting was never set up. Through the API a Member
        changes only the renewals on accounts in their book (403 otherwise); the
        app does not limit this. A digital worker's key is a 403: renewals are a
        person's workflow. The edit is the key's person's: a personal key or MCP
        login, or else the member who created the key; a key no current member
        stands behind is a 403. The opportunity update (PATCH
        /v1/objects/opportunity/records/{id}) still refuses these fields. Needs
        AI CSP, as Renewals does in the app: other workspaces get a 403
        not_entitled.
      operationId: renewals_edit_field
      parameters:
        - description: The renewal's opportunity id
          in: path
          name: opportunity_id
          required: true
          schema:
            examples:
              - '1042'
            type: string
        - description: >-
            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)
          in: path
          name: field
          required: true
          schema:
            enum:
              - probability
              - expected_amount
              - decision
              - risks
            examples:
              - probability
            type: string
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              examples:
                - base_value: 75
                  hold_days: 30
                  reason: Champion left last week.
                  value: 60
              properties:
                base_value:
                  default: null
                  description: >-
                    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
                  examples:
                    - 75
                  title: Base Value
                hold_days:
                  anyOf:
                    - maximum: 365
                      minimum: 0
                      type: integer
                    - type: 'null'
                  default: null
                  description: >-
                    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
                  examples:
                    - 30
                  title: Hold Days
                hold_until:
                  anyOf:
                    - format: date-time
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    Instead of hold_days: when the hold ends, with a timezone
                    offset, at most 365 days ahead
                  examples:
                    - '2026-12-31T00:00:00Z'
                  title: Hold Until
                reason:
                  anyOf:
                    - maxLength: 5000
                      type: string
                    - type: 'null'
                  default: null
                  description: >-
                    Why: the next assessment reads it. Required unless the
                    field's edit policy says otherwise
                  examples:
                    - Champion left last week.
                  title: Reason
                value:
                  description: >-
                    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
                  examples:
                    - 60
                  title: Value
              required:
                - value
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RenewalFieldEdit'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    RenewalFieldEdit:
      properties:
        changed:
          description: 'Whether the value moved: false when it already held what you sent'
          title: Changed
          type: boolean
        field:
          description: The field edited
          enum:
            - probability
            - expected_amount
            - decision
            - risks
          examples:
            - probability
          title: Field
          type: string
        held_until:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            Until when the AI leaves your value; null when it may update it on
            its next run
          examples:
            - '2026-12-31T00:00:00Z'
          title: Held Until
        opportunity_id:
          description: The renewal's opportunity id
          examples:
            - '1042'
          title: Opportunity Id
          type: string
      required:
        - opportunity_id
        - field
        - changed
        - held_until
      title: RenewalFieldEdit
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http
      description: >-
        An API key, sent as `Authorization: Bearer stfy_live_…`. See
        [Authentication](/rest-api/authentication) for how to get one and which
        scopes it needs.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.