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

# Update Prompt

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

PATCH handler with superadmin lock and field protection.

Checks:
1. Object lock (is_managed=True -> non-superadmins can't modify)
2. Field protection (non-superadmins can't modify specific fields)

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string, required

## Request body

- PatchedPublicPromptUpdateRequest
  - `name` string
  - `description` string
  - `prompt_slug` string, nullable
  - `starred` boolean
  - `is_example` boolean
  - `blurred` boolean
  - `deleted_at` string, date-time, nullable
  - `organization` integer
  - `project` string, nullable
  - `created_by` integer, nullable

## Response `200`

- PublicPromptUpdate
  - `id` string, required
  - `prompt_id` string, required
  - `name` string
  - `description` string
  - `prompt_slug` string, nullable
  - `commit_count` integer, required
  - `starred` boolean
  - `is_example` boolean
  - `blurred` boolean
  - `deleted_at` string, date-time, nullable
  - `organization` integer, required
  - `project` string, nullable
  - `created_by` integer, nullable

---

[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/versions/c26d550029f8/schema)
