---
title: "Update Example"
method: PATCH
path: "/api/v1/examples/{example_id}"
tags: ["examples"]
---

# Update Example

`PATCH /api/v1/examples/{example_id}`

Update a specific example.

## Path parameters

- `example_id` string, uuid, required

## Request body

- ExampleUpdate — Update class for Example.
  - `dataset_id` string, uuid, nullable
  - `inputs` object, nullable
  - `outputs` object, nullable
  - `attachments_operations` AttachmentsOperations
    - `rename` object — Mapping of old attachment names to new names
    - `retain` string[] — List of attachment names to keep
  - `metadata` object, nullable
  - `split` union
    - string[]
    - string
  - `overwrite` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.net/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
