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

# Update records in a table or view

> Changes records in the table or view matching the table_id.

The request is refused if any record fails validation against the table's
fields, if the caller cannot edit the table's records, or if
`change_options` names a member or a value this operation does not publish.
`change_options.on_conflict` decides what happens when a record being
updated is the source of a linked record: the default applies the update,
and `block` refuses the whole request instead.

Send an `Idempotency-Key` with every write. A retry that arrives after the
first request has finished and reuses the key and the payload answers with
the original response instead of applying the update a second time. Two
requests racing with one key can both execute, and a response too large to
store is not replayed.



## OpenAPI

````yaml /api-reference/specs/tables.yaml patch /tables/v2/tables/{table_id}/records
openapi: 3.1.0
info:
  title: Tables API
  description: >-
    Read and write Tables by Zapier data — create and manage tables and their
    fields, and create, query, update and delete the records in them.
  version: 1.0.0
  contact:
    url: https://docs.zapier.com
servers:
  - url: https://api.zapier.com
    description: Production
security:
  - OAuth: []
tags:
  - name: Fields
    description: Operations for managing the fields on a table.
  - name: Records
    description: Operations for managing the records in a table.
  - name: Tables
    description: Operations for creating and managing tables.
paths:
  /tables/v2/tables/{table_id}/records:
    patch:
      tags:
        - Records
      summary: Update records in a table or view
      description: >-
        Changes records in the table or view matching the table_id.


        The request is refused if any record fails validation against the
        table's

        fields, if the caller cannot edit the table's records, or if

        `change_options` names a member or a value this operation does not
        publish.

        `change_options.on_conflict` decides what happens when a record being

        updated is the source of a linked record: the default applies the
        update,

        and `block` refuses the whole request instead.


        Send an `Idempotency-Key` with every write. A retry that arrives after
        the

        first request has finished and reuses the key and the payload answers
        with

        the original response instead of applying the update a second time. Two

        requests racing with one key can both execute, and a response too large
        to

        store is not replayed.
      operationId: updateTableRecords
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
            examples:
              - 01563e3a-b5d3-d676-4c61-efb99302bd5b
            title: Table Id
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            description: >-
              Optional idempotency key (max 255 chars). The same key with the
              same payload returns the original response for up to 24 hours; the
              same key with a different payload returns 422.
            title: Idempotency-Key
            oneOf:
              - type: string
                maxLength: 255
              - type: 'null'
          description: >-
            Optional idempotency key (max 255 chars). The same key with the same
            payload returns the original response for up to 24 hours; the same
            key with a different payload returns 422.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2UpdateTableRecordsRequest'
            examples:
              One record:
                summary: Update a single record
                description: >-
                  A record id is the UUID form `V2Record.id` publishes, not the
                  internal ULID. A record key is `f{field_id}`, or the field's
                  slug where the account has slugs enabled; a field left out
                  keeps its stored value
                value:
                  updated_records:
                    - id: 01563e3a-b5d3-d676-4c61-efb99302bd5b
                      data:
                        f1: Acme Corp
                        f2: 12
              Several records:
                summary: Update several records in one request
                description: >-
                  They are updated together, and the response reports them in
                  the order they were sent
                value:
                  updated_records:
                    - id: 01563e3a-b5d3-d676-4c61-efb99302bd5b
                      data:
                        f1: Acme Corp
                    - id: 01563e3a-b5d3-d676-4c61-efb99302bd5c
                      data:
                        f2: 7
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2UpdateTableRecordsResponse'
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
        '400':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Bad Request
        '401':
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
          description: Unauthorized
        '403':
          description: >-
            Refused: the token's scope does not permit this operation
            (`auth:insufficient_scope`), or the table's sharing does not grant
            the caller this action (`permissions:errors`), or a linked record
            names a source table the caller cannot read
            (`linked_records:source_table_access`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '404':
          description: >-
            Not found: no table or view has that id (`table:notfound`), or no
            record with that id is on the table, or the view the request names
            does not contain it (`record:notfound`), or the table was deleted
            while the request was in flight (`schema:table_deleted`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '409':
          description: >-
            Conflict: the write duplicates a value in a field the table requires
            to be unique (`record:uniqueconstraint`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '422':
          description: >-
            Cannot process: the request names more items than the operation's
            maxItems allows (`max_values_exceeded`, with the limit in
            meta.max_values), or the key was reused with a different payload
            (`idempotency:key_mismatch`).
          headers:
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorsResponse'
        '429':
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
            X-RateLimit-Limit:
              description: Requests permitted in the current rate-limit window.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests still permitted in the current window, after this one.
              schema:
                type: integer
            X-RateLimit-Reset:
              description: >-
                Seconds until quota next frees up. A delta, like Retry-After --
                not an epoch timestamp.
              schema:
                type: integer
          description: Too Many Requests
        '503':
          description: >-
            The Public API Gateway could not reach the authorization service.
            The condition is transient; retry the request.
          headers:
            Retry-After:
              description: Number of seconds to wait before retrying the request
              schema:
                type: integer
      security:
        - OAuth:
            - external
            - table:record:write
components:
  schemas:
    V2UpdateTableRecordsRequest:
      properties:
        updated_records:
          items:
            $ref: '#/components/schemas/V2UpdateRecord'
          type: array
          maxItems: 1000
          title: Updated Records
          description: The records to update, and at most 1000 of them in one request
        change_options:
          description: >-
            Options that control how the updated records' changes are processed
            and delivered
          allOf:
            - $ref: '#/components/schemas/V2UpdateTableRecordsChangeOptions'
      additionalProperties: false
      type: object
      required:
        - updated_records
      title: V2UpdateTableRecordsRequest
      description: The records to update, and how their changes are delivered.
    V2UpdateTableRecordsResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/V2Record'
          type: array
          title: Results
          description: >-
            The records this request updated, each with its state after the
            change
        meta:
          $ref: '#/components/schemas/V2EmptyMeta'
      type: object
      required:
        - results
        - meta
      title: V2UpdateTableRecordsResponse
      description: The records the request updated.
    ErrorsResponse:
      properties:
        detail:
          type: string
          title: Detail
          description: Detailed error description
        code:
          type: string
          title: Code
          description: Error code identifying the type of error
        message:
          type: string
          title: Message
          description: Human-readable error message
          default: ''
        support_id:
          type: string
          title: Support Id
          description: Support identifier for tracking this error
          default: ''
          x-zapier-id-format-exempt: true
        meta:
          additionalProperties: true
          type: object
          title: Meta
          description: Additional metadata about the error
        errors:
          items:
            $ref: '#/components/schemas/Error'
          type: array
          title: Errors
          description: List of specific errors that occurred
      type: object
      required:
        - detail
        - code
        - meta
        - errors
      title: ErrorsResponse
      description: Represents an API error response with detailed information.
    V2UpdateRecord:
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          format: uuid
          title: Id
          description: >-
            Unique identifier of the record to update, in the form `V2Record.id`
            publishes
          examples:
            - 01563e3a-b5d3-d676-4c61-efb99302bd5b
        data:
          additionalProperties: true
          type: object
          title: Data
          description: >-
            The record's values to change, keyed by field key (`f{id}`), or by
            the field's slug where the account has slugs enabled. A field left
            out keeps its stored value
        edited_at:
          title: Edited At
          description: >-
            The record's last-edited time as the caller last saw it. When
            provided, an update is skipped if the record's stored `edited_at` is
            newer, which is how a caller avoids overwriting a concurrent write
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
      additionalProperties: false
      type: object
      required:
        - id
        - data
      title: V2UpdateRecord
      description: A record to update.
    V2UpdateTableRecordsChangeOptions:
      properties:
        change_mode:
          type: string
          enum:
            - silent
            - normal
            - per_settings
          title: Change Mode
          description: >-
            Whether the update triggers downstream automations. 'silent' never
            triggers them, 'normal' always does, and 'per_settings' follows the
            table's own send-records setting
          default: normal
        stash_mode:
          type: string
          enum:
            - none
            - store
            - per_settings
          title: Stash Mode
          description: >-
            Whether the update is kept for pending automations. 'none' keeps
            nothing, 'store' keeps it, and 'per_settings' follows the table's
            own send-records setting
          default: none
        linked_records_lookup_mode:
          type: string
          enum:
            - skip
            - reject
          title: Linked Records Lookup Mode
          description: >-
            What to do when a linked record's source record cannot be found:
            'reject' fails the whole request, 'skip' drops the invalid linked
            value and continues
          default: reject
        session_nonce:
          title: Session Nonce
          description: >-
            Identifies the session that made the change, so a caller subscribed
            to realtime updates can recognize and ignore its own writes
          oneOf:
            - type: integer
            - type: 'null'
        on_conflict:
          type: string
          enum:
            - block
            - ignore
          title: On Conflict
          description: >-
            What to do when a record being updated is the source of a linked
            record: 'block' refuses the whole request, 'ignore' applies the
            update
          default: ignore
      additionalProperties: false
      type: object
      title: V2UpdateTableRecordsChangeOptions
      description: Options that control how a record update is processed and delivered.
      required: []
    V2Record:
      properties:
        id:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
          format: uuid
          title: Id
          description: Unique identifier for the record
          examples:
            - 01563e3a-b5d3-d676-4c61-efb99302bd5b
        data:
          additionalProperties: true
          type: object
          title: Data
          description: >-
            The record's data, keyed by field key (`f{id}`). On an account whose
            field-slug rollout has reached it, a field that has a user-defined
            slug is keyed by the slug instead
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the record was created
        edited_at:
          type: string
          format: date-time
          title: Edited At
          description: When the record was last modified
        deleted_at:
          title: Deleted At
          description: >-
            Timestamp when the record was moved to the trash, or null if it is
            active
          oneOf:
            - type: string
              format: date-time
            - type: 'null'
        is_source_record:
          title: Is Source Record
          description: >-
            Whether this record is currently used as the source of a linked
            record field, somewhere else in the account. Null when the operation
            did not compute it: `queryTableRecords` skips it when
            `annotate_linked_source=false`, and the create and update operations
            never compute it
          oneOf:
            - type: boolean
            - type: 'null'
        errors:
          additionalProperties:
            $ref: '#/components/schemas/V2RecordFieldError'
          type: object
          title: Errors
          description: Validation errors for the record's fields, keyed like `data`
      type: object
      required:
        - id
        - data
        - created_at
        - edited_at
      title: V2Record
      description: A record of a table.
    V2EmptyMeta:
      properties: {}
      type: object
      title: V2EmptyMeta
      description: No metadata accompanies this response.
      required: []
    Error:
      properties:
        title:
          type: string
          title: Title
          description: Human-readable error title or summary
        status:
          title: Status
          description: HTTP status code associated with this error
          oneOf:
            - type: integer
            - type: 'null'
        code:
          title: Code
          description: Error code identifying the type of error
          oneOf:
            - type: string
            - type: 'null'
        detail:
          title: Detail
          description: Detailed description of the error
          oneOf:
            - type: string
            - type: 'null'
        meta:
          title: Meta
          description: Additional metadata about the error
          oneOf:
            - additionalProperties: true
              type: object
            - type: 'null'
      type: object
      required:
        - title
      title: Error
      description: Represents an error that occurred during API request processing.
    V2RecordFieldError:
      properties:
        severity:
          type: string
          enum:
            - error
            - warning
          title: Severity
          description: Whether the value was rejected ('error') or accepted with a warning
        value:
          title: Value
          description: The value that failed validation or raised the warning
        message:
          type: string
          title: Message
          description: Technical description of the validation failure
        human_message:
          title: Human Message
          description: >-
            A version of `message` suitable for display to a person, when the
            failure has one
          oneOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - severity
        - value
        - message
      title: V2RecordFieldError
      description: Why one field of a record was rejected, or flagged as suspicious.
  securitySchemes:
    OAuth:
      type: oauth2
      description: OAuth 2.0 authentication.
      flows:
        authorizationCode:
          authorizationUrl: https://zapier.com/oauth/authorize
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access
        clientCredentials:
          tokenUrl: https://zapier.com/oauth/token
          scopes:
            external: Scope that gives access to all Public APIs
            table:read: Grants table:read access
            table:write: Grants table:write access
            table:delete: Grants table:delete access
            table:field:read: Grants table:field:read access
            table:field:write: Grants table:field:write access
            table:field:delete: Grants table:field:delete access
            table:record:write: Grants table:record:write access
            table:record:delete: Grants table:record:delete access
            table:record:read: Grants table:record:read access

````