---
title: "Update Prompt"
method: POST
path: "/prompts/{prompt_id}"
tags: ["PROMPT_LIBRARY"]
deprecated: true
---

# Update Prompt

`POST /prompts/{prompt_id}`

> **Deprecated.**

Update an existing prompt.
Users can only update prompts they created, service users can update any prompt.

## Path parameters

- `prompt_id` string, uuid, required

## Request body

- UpdatePromptRequest — Request schema for updating an existing prompt
  - `title` string, nullable
  - `description` string, nullable
  - `prompt_text` string, nullable
  - `tags` string[], nullable
  - `teams` integer[], nullable
  - `attributes` object, nullable

## Response `200`

Successful Response

- PromptResponse — Response schema for a single prompt
  - `id` string, uuid, required
  - `title` string, required
  - `description` string, nullable
  - `prompt_text` string, required
  - `tags` string[]
  - `teams` integer[], nullable
  - `created_by` integer, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `last_used_at` string, date-time, nullable
  - `attributes` object
  - `is_public` boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
