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

# Update Field

> Updates field properties and configuration using either field ID or field name.

Updates field properties and configuration for an existing field using either the field ID or field name.

<Note>
  The `template` object structure varies by field type - see [Field Types Reference](/help/database/api/field-types) for complete details
</Note>


## OpenAPI

````yaml help/database/openapi.json PATCH /bases/{databaseId}/tables/{tableId}/fields/{fieldId}
openapi: 3.0.1
info:
  title: Zite DB REST API
  description: >-
    A REST API for managing Zite databases, tables, fields, and records. Build
    database-driven applications with programmatic access to your structured
    data.


    ## What is REST API


    A **REST API** simplifies interaction with your database data, allowing for
    automation and integration. Following RESTful principles, it seamlessly
    connects to retrieve, create, and modify database data.


    ## Getting Started


    ### Authentication

    All API requests require authentication using your Zite API key in the
    Authorization header:

    ```

    Authorization: Bearer YOUR_API_KEY

    ```


    ### Base URL

    https://tables.zite.com/api/v1


    ### Rate Limits

    API requests are rate limited to ensure service quality. Standard rate
    limits apply to all endpoints.


    ### Error Handling

    The API returns standard HTTP status codes and JSON error responses with
    detailed error messages.
  version: 1.0.0
servers:
  - url: https://tables.zite.com/api/v1
    description: Zite DB API
security:
  - bearerAuth: []
tags:
  - name: Databases
    description: Operations for managing databases
  - name: Tables
    description: Operations for managing tables within databases
  - name: Fields
    description: Operations for managing fields within tables
  - name: Records
    description: Operations for managing records within tables
  - name: Webhooks
    description: >-
      Operations for managing webhook subscriptions to receive real-time
      notifications when database events occur
paths:
  /bases/{databaseId}/tables/{tableId}/fields/{fieldId}:
    patch:
      tags:
        - Fields
      summary: Update field
      description: Updates field properties and configuration
      operationId: updateField
      parameters:
        - name: databaseId
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the database
        - name: tableId
          in: path
          required: true
          schema:
            type: string
          description: >-
            The unique identifier of the table. You can also use the table name
            instead of the ID.
        - name: fieldId
          in: path
          required: true
          schema:
            type: string
          description: >-
            The unique identifier of the field. You can also use the field name
            instead of the ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFieldRequest'
      responses:
        '200':
          description: Field updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Field'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    UpdateFieldRequest:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          description: New field name
        template:
          type: object
          additionalProperties: true
          description: >-
            Updated field configuration. See [Field Types
            Reference](/help/database/api/field-types) for detailed template
            structure by field type.
    Field:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the field
        name:
          type: string
          description: Name of the field
        type:
          $ref: '#/components/schemas/FieldType'
        template:
          type: object
          description: >-
            Field-specific configuration options. See [Field Types
            Reference](/help/database/api/field-types) for detailed template
            structure by field type.
          additionalProperties: true
        order:
          type: integer
          description: Display order of the field
      required:
        - id
        - name
        - type
        - template
        - order
    FieldType:
      type: string
      enum:
        - single_line_text
        - long_text
        - email
        - url
        - phone_number
        - number
        - currency
        - percent
        - rating
        - duration
        - single_select
        - multiple_select
        - checkbox
        - date
        - datetime
        - attachments
        - linked_record
        - lookup
        - autonumber
        - source
      description: >-
        Field type - see [Field Types Reference](/help/database/api/field-types)
        for complete list of available types and their configurations
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
            message:
              type: string
              description: Human-readable error message
          required:
            - code
            - message
      required:
        - error
  responses:
    BadRequest:
      description: Invalid request data or validation failure
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            invalidRecordId:
              value:
                error:
                  code: INVALID_RECORD_ID
                  message: Record ID is not in valid UUID format
            validationError:
              value:
                error:
                  code: BAD_REQUEST
                  message: Invalid request data or validation failure
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: UNAUTHORIZED
              message: Invalid or missing API key
    NotFound:
      description: Requested resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: NOT_FOUND
              message: Requested resource does not exist
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Enter your Zite API key. Format: Bearer <api_key>'

````