---
title: "Update an LLM Observability dataset"
method: PATCH
path: "/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}"
tags: ["LLM Observability"]
---

# Update an LLM Observability dataset

`PATCH /api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/llm-obs/v1/{project_id}/datasets/{dataset_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Partially update an existing LLM Observability dataset within the specified project.

## Path parameters

- `project_id` string, required
- `dataset_id` string, required

## Request body

- LLMObsDatasetUpdateRequest: Request to partially update an LLM Observability dataset.
  - `data` LLMObsDatasetUpdateDataRequest, required: Data object for updating an LLM Observability dataset.
    - `attributes` LLMObsDatasetUpdateDataAttributesRequest, required: Attributes for updating an LLM Observability dataset.
      - `description` string: Updated description of the dataset.
      - `metadata` object: Updated metadata associated with the dataset.
      - `name` string: Updated name of the dataset.
    - `type` 'datasets', required: Resource type of an LLM Observability dataset.

## Response `200`

OK

- LLMObsDatasetResponse: Response containing a single LLM Observability dataset.
  - `data` LLMObsDatasetDataResponse, required: Data object for an LLM Observability dataset.
    - `attributes` LLMObsDatasetDataAttributesResponse, required: Attributes of an LLM Observability dataset.
      - `created_at` string, date-time, required: Timestamp when the dataset was created.
      - `current_version` integer, required: Current version number of the dataset.
      - `description` string, nullable, required: Description of the dataset.
      - `metadata` object, nullable, required: Arbitrary metadata associated with the dataset.
      - `name` string, required: Name of the dataset.
      - `updated_at` string, date-time, required: Timestamp when the dataset was last updated.
    - `id` string, required: Unique identifier of the dataset.
    - `type` 'datasets', required: Resource type of an LLM Observability dataset.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
