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

# Update Field



## OpenAPI

````yaml PATCH /api/v1/tables/{table_pk}/fields/{name}/
openapi: 3.0.3
info:
  title: Nekt API
  version: v1
  description: Nekt API Documentation
  contact:
    email: support@nekt.ai
servers:
  - url: https://api.nekt.ai
security: []
paths:
  /api/v1/tables/{table_pk}/fields/{name}/:
    patch:
      tags:
        - v1
      operationId: v1_tables_fields_partial_update
      parameters:
        - in: path
          name: name
          schema:
            type: string
          required: true
        - in: path
          name: table_pk
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchedTableField'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PatchedTableField'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PatchedTableField'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableField'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    PatchedTableField:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          readOnly: true
        description:
          type: string
          nullable: true
        json_schema:
          type: string
          readOnly: true
          description: >-
            JSON schema of the field (Field only visible on expanded view.
            Expandable)
        is_primary_key:
          type: boolean
          readOnly: true
        foreign_key_reference:
          type: string
          readOnly: true
          nullable: true
        field_role:
          allOf:
            - $ref: '#/components/schemas/FieldRoleEnum'
          readOnly: true
        metadata:
          readOnly: true
          nullable: true
        created_at:
          type: string
          format: date-time
          readOnly: true
        updated_at:
          type: string
          format: date-time
          readOnly: true
    TableField:
      type: object
      properties:
        id:
          type: string
          format: uuid
          readOnly: true
        name:
          type: string
          maxLength: 512
        description:
          type: string
          nullable: true
        json_schema:
          nullable: true
      required:
        - id
        - name
    FieldRoleEnum:
      enum:
        - NONE
        - MEASURE
        - ATTRIBUTE
        - SCD2_FROM
        - SCD2_TO
        - SCD2_CURRENT
        - AUDIT
      type: string
      description: |-
        * `NONE` - None
        * `MEASURE` - Measure
        * `ATTRIBUTE` - Attribute
        * `SCD2_FROM` - SCD2 From
        * `SCD2_TO` - SCD2 To
        * `SCD2_CURRENT` - SCD2 Current
        * `AUDIT` - Audit
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key authentication. Format: ''x-api-key: api_key'''

````