---
title: "Update Instruction"
method: PUT
path: "/instructions/{id}"
tags: ["Instruction"]
---

# Update Instruction

`PUT /instructions/{id}`

## Path parameters

- `id` string, required

## Request body

- InstructionRequest
  - `instruction` string, required
  - `db_connection_id` string
  - `metadata` object

## Response `200`

Successful Response

- InstructionResponse
  - `instruction` string, required
  - `db_connection_id` string
  - `id` string, required
  - `created_at` string, date-time
  - `metadata` InstructionMetadata
    - `dh_internal` object

## Other responses

- `404` — Not found
- `422` — Validation Error

---

[API](https://skmtc.dev/dataherald/apis/fastapi.md) · [All operations](https://skmtc.dev/dataherald/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dataherald/fastapi/revisions/e168e98625a8/schema)
