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

> `items` is up to 100 updates, each a user `id` and an update body; a user may appear once. 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. It counts as one write per item against your rate limit.



## OpenAPI

````yaml /api/statisfy-api.openapi.json post /v1/objects/user/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/user/records/batch/update:
    post:
      tags:
        - users
      summary: Update up to 100 users, each with its own values
      description: >-
        `items` is up to 100 updates, each a user `id` and an update body; a
        user may appear once. 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. It
        counts as one write per item against your rate limit.
      operationId: users_batch_update
      requestBody:
        content:
          application/json:
            schema:
              additionalProperties: false
              properties:
                items:
                  description: Each a user id and its update
                  items:
                    $ref: '#/components/schemas/UserBatchUpdateItem'
                  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:
    UserBatchUpdateItem:
      additionalProperties: true
      properties:
        calendar_link:
          default: null
          description: >-
            A link; https:// is added when it has no scheme. Null or blank
            clears it
          title: Calendar Link
          type: string
        department:
          default: null
          description: 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
        id:
          title: Id
          type: string
        manager:
          default: null
          description: A user's id; null or blank clears it
          title: Manager
          type: string
        name:
          default: null
          description: >-
            The full name, split into first and last on the first space; cannot
            be cleared
          title: Name
          type: string
        role:
          default: null
          description: Free text; null or blank clears it
          title: Role
          type: string
      required:
        - id
      title: UserBatchUpdateItem
      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.