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

# Update item field



## OpenAPI

````yaml /openapi.yaml patch /item_fields/{id}
openapi: 3.0.1
info:
  title: GetSpecs REST API
  description: REST API documentation for GetSpecs.
  version: 1.0.0
servers:
  - url: /v1
  - url: https://demo-api.getspecs.io/v1
security: []
paths:
  /item_fields/{id}:
    patch:
      tags:
        - ItemField
      summary: Update item field
      operationId: item_fields#update
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/requestBodyItemFieldUpdate'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/item_field'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/error'
      security:
        - apiKey: []
          workspaceId: []
components:
  schemas:
    requestBodyItemFieldUpdate:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
        format:
          type: string
          enum:
            - default
            - currency
          description: '`currency` is allowed for number columns only.'
        options:
          type: array
          description: >-
            For list and multiselect field types, to update an existing option
            provide its key; to add a new option omit the key. Label is required
            for new options; for existing options label and archived are both
            optional. For the item_card field type, provide the full replacement
            list of slugs (must reference existing active non-item_card columns
            in the workspace, restricted to logic_type product_item when the
            card's own logic_type is product_item) — the list is replaced
            wholesale, not merged. For the contact field type, provide the full
            replacement list of company tags — also replaced wholesale; an empty
            array clears the restriction.
          items:
            type: object
            properties:
              key:
                type: string
                description: Key of an existing option to update. Omit to add a new option.
              label:
                type: string
              archived:
                type: boolean
              slug:
                type: string
              tag:
                type: string
                description: >-
                  For contact columns. Must be one of the workspace's company
                  tags.
    item_field:
      type: object
      properties:
        id:
          type: integer
        slug:
          type: string
        name:
          type: string
        description:
          type: string
          nullable: true
        field_type:
          type: string
          enum:
            - number
            - percent
            - string
            - date
            - images
            - docs
            - list
            - multiselect
            - boolean
            - contact
            - item_card
            - quantity
            - areas_list
        format:
          type: string
          enum:
            - default
            - currency
          description: >-
            How the column is displayed. `currency` (number columns only) shows
            the row's currency — the project's for project items, the
            workspace's for product items.
        options:
          type: array
          nullable: true
          items:
            type: object
            properties:
              key:
                type: string
              label:
                type: string
              archived:
                type: boolean
              slug:
                type: string
                nullable: true
              tag:
                type: string
                nullable: true
                description: >-
                  For contact columns — a company tag the column is restricted
                  to.
        bulk_update:
          type: boolean
        sortable:
          type: boolean
        position:
          type: integer
        association_type:
          type: string
          nullable: true
        editable:
          type: boolean
        deletable:
          type: boolean
        deleted_at:
          type: string
          format: date-time
          nullable: true
    error:
      type: object
      properties:
        error:
          type: string
        errors:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
                nullable: true
              code:
                type: string
                nullable: true
              message:
                type: string
            required:
              - message
  securitySchemes:
    apiKey:
      type: apiKey
      name: authorization
      in: header
    workspaceId:
      type: apiKey
      name: X-Workspace-ID
      in: header

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.