---
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

---

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