> ## 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 contacts, each with its own values

> `items` is up to 100 updates, each a contact `id` and an update body; a contact may appear once (twice is a 422 for the whole request). Each is checked and written on its own, as a single update is, 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 have had its standard fields written. It counts as one write per item against your rate limit, so a batch larger than your per-minute limit is a 422.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/contact/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/contact/records/batch/update:
    post:
      tags:
        - contacts
      summary: Update up to 100 contacts, each with its own values
      description: >-
        `items` is up to 100 updates, each a contact `id` and an update body; a
        contact may appear once (twice is a 422 for the whole request). Each is
        checked and written on its own, as a single update is, 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 have had its standard fields written. It counts as one write
        per item against your rate limit, so a batch larger than your per-minute
        limit is a 422.
      operationId: contacts_batch_update
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                items:
                  description: Each a contact id and its update
                  items:
                    $ref: '#/components/schemas/ContactBatchUpdateItem'
                  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:
    ContactBatchUpdateItem:
      additionalProperties: true
      properties:
        accounts:
          default: null
          description: 'Replaces the contact''s accounts: live account ids, the primary first'
          items:
            type: string
          title: Accounts
          type: array
        department:
          default: null
          description: The contact's department (free text); null or blank clears it
          title: Department
          type: string
        fields:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          description: Custom field keys to values
          title: Fields
        first_name:
          default: null
          description: >-
            Sent without name, rebuilds the name from the parts; null or blank
            clears it
          title: First Name
          type: string
        id:
          title: Id
          type: string
        last_name:
          default: null
          description: >-
            Sent without name, rebuilds the name from the parts; null or blank
            clears it
          title: Last Name
          type: string
        name:
          default: null
          description: The contact's full name; cannot be cleared
          title: Name
          type: string
        role:
          default: null
          description: >-
            The contact's buying role, such as Economic Buyer (free text); null
            or blank clears it
          title: Role
          type: string
        title:
          default: null
          description: The contact's job title; null or blank clears it
          title: Title
          type: string
      required:
        - id
      title: ContactBatchUpdateItem
      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.