> ## 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.

# Update up to 100 opportunities, each with its own values

> `items` is up to 100 updates, each an opportunity `id` and an update body. Each is checked and written on its own, so one failure does not stop the rest. The answer lists every item in request order with `status` `updated` or `failed`, and for a failure the `error` a single update would have returned. As with a single update, a failed item may be partly written (custom values commit before standard fields). It counts as one write per item against your rate limit.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/opportunity/records/batch/update
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/objects/opportunity/records/batch/update:
    post:
      tags:
        - opportunities
      summary: Update up to 100 opportunities, each with its own values
      description: >-
        `items` is up to 100 updates, each an opportunity `id` and an update
        body. Each is checked and written on its own, so one failure does not
        stop the rest. The answer lists every item in request order with
        `status` `updated` or `failed`, and for a failure the `error` a single
        update would have returned. As with a single update, a failed item may
        be partly written (custom values commit before standard fields). It
        counts as one write per item against your rate limit.
      operationId: opportunities_batch_update
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                items:
                  description: Each an opportunity id and its update
                  items:
                    $ref: '#/components/schemas/OpportunityBatchUpdateItem'
                  maxItems: 100
                  minItems: 1
                  title: Items
                  type: array
              required:
                - items
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchUpdateResult'
          description: Successful Response
      security:
        - HTTPBearer: []
components:
  schemas:
    OpportunityBatchUpdateItem:
      additionalProperties: true
      properties:
        amount:
          default: null
          description: The deal's value
          title: Amount
          type: number
        close_date:
          default: null
          description: YYYY-MM-DD
          format: date
          title: Close Date
          type: string
        description:
          default: null
          description: Free text
          title: Description
          type: string
        fields:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          description: Custom field keys to values
          title: Fields
        id:
          title: Id
          type: string
        name:
          default: null
          description: The opportunity's name (required on a create)
          title: Name
          type: string
        owner:
          default: null
          description: The owner's user id
          title: Owner
          type: string
        stage:
          default: null
          description: One of your stages (key or label) where your stage list is set up
          title: Stage
          type: string
        type:
          default: null
          description: New Business, Renewal, Expansion, ...
          title: Type
          type: string
      required:
        - id
      title: OpportunityBatchUpdateItem
      type: object
    BatchUpdateResult:
      properties:
        items:
          items:
            $ref: '#/components/schemas/BatchItemResult'
          title: Items
          type: array
      required:
        - items
      title: BatchUpdateResult
      type: object
    BatchItemResult:
      properties:
        error:
          anyOf:
            - $ref: '#/components/schemas/ItemError'
            - type: 'null'
          description: Set exactly when `status` is `failed`
        id:
          title: Id
          type: string
        status:
          enum:
            - updated
            - failed
          title: Status
          type: string
      required:
        - id
        - status
      title: BatchItemResult
      type: object
    ItemError:
      description: The error envelope a single request would have returned.
      properties:
        code:
          title: Code
          type: string
        details:
          items:
            additionalProperties: true
            type: object
          title: Details
          type: array
        message:
          title: Message
          type: string
      required:
        - code
        - message
      title: ItemError
      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.