---
title: "Update training data"
method: PUT
path: "/training-data/{id}"
tags: ["Training Data"]
---

# Update training data

`PUT /training-data/{id}`

## Request

- Base URL: `https://api.weav.com/v1`
- URL: `https://api.weav.com/v1/training-data/{id}`
- Auth: HTTP bearer

The API does not accept `metadata` in requests.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `title` string, nullable
  - `description` string, nullable
  - `agent_ids` string[], nullable

## Response `200`

Success

- TrainingData
  - `id` string, uuid
  - `type` 'text' | 'url' | 'file' | 'video' | 'qa'
  - `source` string
  - `title` string, nullable
  - `description` string, nullable
  - `slug` string, nullable
  - `is_processed` boolean
  - `status` 'queued' | 'processing' | 'completed' | 'failed', nullable
  - `training_folder_id` string, uuid, nullable
  - `created_at` string, date-time, nullable
  - `updated_at` string, date-time, nullable

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/weav/apis/weav-api.md) · [All operations](https://skmtc.dev/weav/apis/weav-api/llms.txt) · [OpenAPI document](https://skmtc.dev/weav/apis/weav-api/revisions/15970f126c0e?raw)
