---
title: "Create Example"
method: POST
path: "/api/v1/examples"
tags: ["examples"]
---

# Create Example

`POST /api/v1/examples`

Create a new example.

## Request body

- object — Create class for Example.
  - `outputs` object, nullable
  - `dataset_id` string, uuid, required
  - `source_run_id` string, uuid, nullable
  - `metadata` object, nullable
  - `inputs` object, nullable
  - `split` union
    - string[]
    - string
  - `id` string, uuid, nullable
  - `use_source_run_io` boolean
  - `use_source_run_attachments` string[]
  - `use_legacy_message_format` boolean — Use Legacy Message Format for LLM runs
  - `created_at` string

## Response `200`

Successful Response

- Example — Example schema.
  - `outputs` object, nullable
  - `dataset_id` string, uuid, required
  - `source_run_id` string, uuid, nullable
  - `metadata` object, nullable
  - `inputs` object, required
  - `created_at` string, date-time
  - `id` string, uuid, required
  - `name` string, required
  - `modified_at` string, date-time, nullable
  - `attachment_urls` object, nullable

---

[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)
