---
title: "Update Examples"
method: PATCH
path: "/api/v1/platform/datasets/{dataset_id}/examples"
tags: ["examples"]
---

# Update Examples

`PATCH /api/v1/platform/datasets/{dataset_id}/examples`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v1/platform/datasets/{dataset_id}/examples`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

This endpoint allows clients to update existing examples in a specified dataset by sending a multipart/form-data PATCH request.
Each form part contains either JSON-encoded data or binary attachment files to update an example.

## Path parameters

- `dataset_id` string, uuid, required

## Request body `multipart/form-data`

- object
  - `{example_id}` string, binary, required: The Example update info as JSON. Can have fields 'metadata', 'split'
  - `{example_id}.inputs` string, binary: The updated Example inputs as JSON
  - `{example_id}.outputs` string, binary: The updated Example outputs as JSON
  - `{example_id}.attachments_operations` string, binary: JSON describing attachment operations (retain, rename)
  - `{example_id}.attachment.{name}` string, binary: New file attachment named {name}

## Response `201`

Created

- ExamplesExamplesUpdatedResponse
  - `as_of` string
  - `count` integer
  - `example_ids` string[]

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v1/platform/datasets/:dataset_id/examples/patch.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
