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

# Update Custom Data Record

> Update a custom data record

Send values for the declared columns you want to update. Unknown columns are ignored.


## OpenAPI

````yaml PATCH /data/{table_name}/{id}
openapi: 3.1.0
info:
  title: Public API v1
  description: >-
    Public API v1 requiring API keys.


    **Timestamps:** All datetime fields in API responses are returned in UTC
    using ISO 8601 format (e.g., `2024-01-15T14:30:00Z`). When filtering by date
    parameters, provide timestamps in ISO 8601 format.
  version: 0.1.0
servers:
  - url: https://api.prod.usesimple.ai/api/v1
    description: Production API Server
security: []
paths:
  /data/{table_name}/{id}:
    patch:
      tags:
        - Custom Data
      summary: Update Custom Data Record
      description: Update a record in a custom data table.
      operationId: update_custom_data_record_data__table_name___id__patch
      parameters:
        - name: table_name
          in: path
          required: true
          schema:
            type: string
            pattern: ^[A-Za-z0-9_-]+$
            title: Table Name
          description: Custom data table name.
        - name: id
          in: path
          required: true
          schema:
            type: integer
            title: ID
          description: Custom data record ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomDataRecordPayload'
      responses:
        '200':
          description: Custom Data Record Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomDataRecordResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Custom Data Table or Record Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - APIKeyHeader: []
components:
  schemas:
    CustomDataRecordPayload:
      type: object
      additionalProperties: true
      minProperties: 1
      title: Custom Data Record Payload
      description: >-
        Object containing values for declared table columns. Managed columns and
        unknown columns are ignored.
    CustomDataRecordResponse:
      type: object
      required:
        - record
      properties:
        record:
          $ref: '#/components/schemas/CustomDataRecord'
      title: Custom Data Record Response
    ErrorResponse:
      type: object
      required:
        - status
        - success
        - error
        - errors
      properties:
        status:
          type: string
          default: error
        success:
          type: boolean
          default: false
        error:
          type: string
          title: Error
        errors:
          items:
            type: string
          type: array
          title: Errors
      title: Error Response
    CustomDataRecord:
      type: object
      required:
        - id
        - organization_id
        - created_at
        - updated_at
      properties:
        id:
          type: integer
          title: ID
        organization_id:
          type: integer
          title: Organization ID
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      additionalProperties: true
      title: Custom Data Record
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization

````