---
title: "Update Prompt By Id"
method: PUT
path: "/api/v1/prompt/{prompt_id}"
tags: ["Prompt"]
---

# Update Prompt By Id

`PUT /api/v1/prompt/{prompt_id}`

Update Prompt

## Path parameters

- `prompt_id` string, uuid, required — The UUID id of the assistant

## Request body

- IPromptUpdate
  - `name` string, nullable
  - `description` string, nullable
  - `prompt_template` string, nullable
  - `owner_type` 'user' | 'system'

## Response `200`

Successful Response

- IPutResponseBaseIPromptUpdate
  - `message` string, nullable
  - `meta` union
    - object
    - unknown
  - `data` IPromptUpdate
    - `name` string, nullable
    - `description` string, nullable
    - `prompt_template` string, nullable
    - `owner_type` 'user' | 'system'

## Other responses

- `422` — Validation Error

---

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