---
title: "Update a prompt"
method: PATCH
path: "/api/prompts/{prompt_id}/"
tags: ["prompts"]
---

# Update a prompt

`PATCH /api/prompts/{prompt_id}/`

Update prompt metadata such as its name or description.

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string, required

## Request body

- object
  - `name` string — Updated prompt name.
  - `description` string — Updated prompt description.

## Response `200`

Prompt updated successfully.

- PromptsUpdatePromptResponse200
  - `id` string
  - `name` string
  - `description` string, nullable
  - `updated_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized - Missing/invalid authentication
- `404` — Prompt not found

## Changes

- **2026-08-13** `4e064cf81dae` — 5 breaking, 15 warning, 4 info
  - the response property `description` became nullable for the status `200`
  - the response property `id` became optional for the status `200`
  - removed the required property `commit_count` from the response with the `200` status
  - removed the required property `organization` from the response with the `200` status
  - …20 more
- **2026-07-31** `c26d550029f8` — 1 warning, 22 info
  - removed the optional property `updated_at` from the response with the `200` status
  - added the new optional request property `blurred`
  - added the new optional request property `created_by`
  - added the new optional request property `deleted_at`
  - …19 more

[Change history](https://skmtc.dev/keywordsai/apis/api-reference/changes/api/prompts/:prompt_id/patch.md)

---

[API](https://skmtc.dev/keywordsai/apis/api-reference.md) · [All operations](https://skmtc.dev/keywordsai/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/keywordsai/api-reference/revisions/c61efaf24756/schema)
