> ## Documentation Index
> Fetch the complete documentation index at: https://arizeai-433a7140.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a dataset label by ID

> Partially update a dataset label's name, color, and/or description. Only the fields included in the request body are changed; omitted fields are left as-is.



## OpenAPI

````yaml patch /v1/dataset_labels/{label_id}
openapi: 3.1.0
info:
  title: Arize-Phoenix REST API
  description: Schema for Arize-Phoenix REST API
  version: '1.0'
servers: []
security: []
paths:
  /v1/dataset_labels/{label_id}:
    patch:
      tags:
        - datasets
      summary: Update a dataset label by ID
      description: >-
        Partially update a dataset label's name, color, and/or description. Only
        the fields included in the request body are changed; omitted fields are
        left as-is.
      operationId: updateDatasetLabel
      parameters:
        - name: label_id
          in: path
          required: true
          schema:
            type: string
            description: The ID of the dataset label
            title: Label Id
          description: The ID of the dataset label
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateDatasetLabelRequestBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateDatasetLabelResponseBody'
        '403':
          description: Forbidden
          content:
            text/plain:
              schema:
                type: string
        '404':
          content:
            text/plain:
              schema:
                type: string
          description: Dataset label not found
        '409':
          content:
            text/plain:
              schema:
                type: string
          description: A dataset label with the same name already exists
        '422':
          content:
            text/plain:
              schema:
                type: string
          description: Invalid dataset label ID or request body
components:
  schemas:
    UpdateDatasetLabelRequestBody:
      properties:
        name:
          anyOf:
            - type: string
              minLength: 1
            - type: 'null'
          title: Name
          description: New name for the label (null is rejected; name is required)
        color:
          anyOf:
            - type: string
              pattern: ^#([0-9a-f]{6})$
              description: A lowercase six-digit hex color code (e.g. '#00cc88')
            - type: 'null'
          title: Color
          description: New lowercase hex color code for the label (null is rejected)
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: New description for the label (null clears the description)
      type: object
      title: UpdateDatasetLabelRequestBody
      description: Fields to update on a dataset label. Omit a field to leave it unchanged.
    UpdateDatasetLabelResponseBody:
      properties:
        data:
          $ref: '#/components/schemas/DatasetLabel'
      type: object
      required:
        - data
      title: UpdateDatasetLabelResponseBody
    DatasetLabel:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        color:
          type: string
          title: Color
      type: object
      required:
        - id
        - name
        - description
        - color
      title: DatasetLabel

````