---
title: "Api Prompts Update 2"
method: PUT
path: "/api/prompts/{prompt_id}/"
tags: ["prompts"]
---

# Api Prompts Update 2

`PUT /api/prompts/{prompt_id}/`

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

## Path parameters

- `prompt_id` string, required

## Headers

- `Authorization` string, required

## Request body

- PublicPromptUpdateRequest
  - `name` string
  - `description` string
  - `prompt_slug` string, nullable
  - `starred` boolean
  - `is_example` boolean
  - `blurred` boolean
  - `deleted_at` string, date-time, nullable
  - `organization` integer, required
  - `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)
