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

# Update Dataset Column

> Update a column's name or settings.



## OpenAPI

````yaml PATCH /datasets/{datasetId}/columns/{columnId}
openapi: 3.1.1
info:
  title: Adaline API
  version: 2.0.0
  description: >-
    Public API for managing Adaline projects, prompts, datasets, evaluators,
    evaluations, providers, models, and deployments.


    Generated from Zod schemas — this spec is the single source of truth.
servers:
  - url: https://api.adaline.ai/v2
    description: Production API
security: []
tags:
  - name: datasets
    description: Manage prompt datasets and their columns and rows.
  - name: projects
    description: List and manage Adaline projects.
  - name: providers
    description: List configured LLM providers and their settings.
  - name: models
    description: List available models across providers.
  - name: prompts
    description: Create and manage prompts and their drafts.
  - name: evaluators
    description: Configure evaluators attached to a prompt.
  - name: evaluations
    description: Run and inspect evaluation results.
  - name: deployments
    description: Retrieve deployed prompt snapshots.
  - name: logs
    description: Ingest execution traces and spans for observability.
paths:
  /datasets/{datasetId}/columns/{columnId}:
    patch:
      tags:
        - datasets
      summary: Update a dataset column
      description: Update a column's name or settings.
      operationId: updateDatasetColumn
      parameters:
        - schema:
            $ref: '#/components/schemas/BaseEntityId'
          required: true
          name: datasetId
          in: path
        - schema:
            $ref: '#/components/schemas/BaseEntityId'
          required: true
          name: columnId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                settings:
                  anyOf:
                    - type: object
                      properties:
                        promptId:
                          $ref: '#/components/schemas/BaseEntityId'
                      required:
                        - promptId
                      title: Prompt Column Settings
                    - type: object
                      properties:
                        method:
                          $ref: '#/components/schemas/ApiHttpMethod'
                        url:
                          type: string
                          format: uri
                        headers:
                          type: object
                          additionalProperties:
                            type: string
                        bodyTemplate:
                          anyOf:
                            - type: object
                              additionalProperties: true
                              title: Object Template
                              description: A JSON object template for the request body.
                            - type: string
                              title: String Template
                      required:
                        - method
                        - url
                      title: API Column Settings
                    - type: object
                      properties: {}
                      title: Static Column Settings
      responses:
        '200':
          description: Column updated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetColumn'
          headers:
            X-Request-Id:
              description: >-
                Unique identifier for the request. Returned in every response.
                Send a custom value to correlate requests, or omit to receive a
                generated UUID.
              schema:
                type: string
                format: uuid
        '400':
          description: Bad request — validation error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized — invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden — API key lacks access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    BaseEntityId:
      title: Base Entity ID
      type: string
      description: Unique identifier for an entity, between 20 and 80 characters.
      minLength: 20
      maxLength: 80
    ApiHttpMethod:
      title: HTTP Method
      type: string
      enum:
        - GET
        - POST
        - PUT
        - PATCH
        - DELETE
      description: Standard HTTP request method.
    DatasetColumn:
      title: Dataset Column
      description: >-
        A dataset column, discriminated by `type`. Static columns have optional
        empty settings. Prompt columns require `promptId`. API columns require
        `method` + `url`.
      oneOf:
        - title: Static Column
          type: object
          properties:
            id:
              $ref: '#/components/schemas/BaseEntityId'
            name:
              type: string
            type:
              type: string
              enum:
                - static
            settings:
              type: object
              properties: {}
              description: Static columns have no configurable settings.
            createdAt:
              $ref: '#/components/schemas/UnixTimestamp'
            updatedAt:
              $ref: '#/components/schemas/UnixTimestamp'
          required:
            - id
            - name
            - type
            - settings
            - createdAt
            - updatedAt
        - title: Prompt Column
          type: object
          properties:
            id:
              $ref: '#/components/schemas/BaseEntityId'
            name:
              type: string
            type:
              type: string
              enum:
                - prompt
            settings:
              type: object
              required:
                - promptId
              properties:
                promptId:
                  $ref: '#/components/schemas/BaseEntityId'
            createdAt:
              $ref: '#/components/schemas/UnixTimestamp'
            updatedAt:
              $ref: '#/components/schemas/UnixTimestamp'
          required:
            - id
            - name
            - type
            - settings
            - createdAt
            - updatedAt
        - title: API Column
          type: object
          properties:
            id:
              $ref: '#/components/schemas/BaseEntityId'
            name:
              type: string
            type:
              type: string
              enum:
                - api
            settings:
              type: object
              required:
                - method
                - url
              properties:
                method:
                  $ref: '#/components/schemas/ApiHttpMethod'
                url:
                  type: string
                  format: uri
                headers:
                  type: object
                  additionalProperties:
                    type: string
                bodyTemplate:
                  anyOf:
                    - type: object
                      additionalProperties: true
                      title: Object Template
                      description: A JSON object template for the request body.
                    - type: string
                      title: String Template
              description: API-driven column settings. Secret headers are redacted.
            createdAt:
              $ref: '#/components/schemas/UnixTimestamp'
            updatedAt:
              $ref: '#/components/schemas/UnixTimestamp'
          required:
            - id
            - name
            - type
            - settings
            - createdAt
            - updatedAt
      discriminator:
        propertyName: type
    ErrorResponse:
      title: Error Response
      type: object
      description: >-
        Standard error response envelope. Permits backend-specific sibling
        fields (e.g. Zod issue details) alongside the typed `error`.
      properties:
        error:
          description: >-
            Error details — typed envelope, or a raw string reason when the
            backend's validator produces a short summary (e.g. Zod validation
            fallback).
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                  description: Machine-readable error code.
                  enum:
                    - VALIDATION_ERROR
                    - INVALID_CURSOR
                    - AUTHENTICATION_REQUIRED
                    - FORBIDDEN
                    - RESOURCE_NOT_FOUND
                    - CONFLICT
                    - PAYLOAD_TOO_LARGE
                    - RATE_LIMITED
                    - INTERNAL_ERROR
                message:
                  type: string
                  description: Human-readable error message.
                details:
                  type: array
                  description: Optional field-level validation details.
                  items:
                    type: object
                    properties:
                      field:
                        type: string
                      issue:
                        type: string
                    required:
                      - field
                      - issue
              required:
                - code
                - message
              additionalProperties: true
      required:
        - error
      additionalProperties: true
    UnixTimestamp:
      title: Unix Timestamp
      type: integer
      format: int64
      description: Unix timestamp in milliseconds.
      minimum: 1672511400000
      maximum: 33229420200000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Workspace API key. Pass as `Authorization: Bearer <key>`.'

````