---
title: "Update prompt text, attributes, or active flag"
method: PUT
path: "/prompts"
tags: ["Resources"]
---

# Update prompt text, attributes, or active flag

`PUT /prompts`

Editing prompt text after results exist requires an explicit choice. The first call returns 409 with `requiresConfirmation: true` (plus `tracked` and `inFlightRun` hints); resend with `confirmClone: true` to clone-and-supersede (the original is deactivated with its history intact — recommended for tracked prompts) or `confirmOverwrite: true` to edit in place (unavailable while a run is in flight).

## Query parameters

- `id` string, uuid, required

## Request body

- object
  - `promptTemplate` string
  - `attributes` string[]
  - `isActive` boolean
  - `confirmClone` boolean
  - `confirmOverwrite` boolean

## Response `200`

Successful response

- object
  - `id` string, uuid, required
  - `topicId` string, uuid, required
  - `topicName` string
  - `promptTemplate` string, required
  - `intentType` string, nullable
  - `language` string, nullable
  - `isManual` boolean
  - `isActive` boolean, required
  - `attributes` string[], required
  - `createdAt` string, date-time
  - `cloned` boolean
  - `originalPromptId` string, uuid

## Other responses

- `400` — Missing or invalid request parameter.
- `401` — Missing, malformed, or revoked API key.
- `402` — Monthly included API calls for your tier are used up (code `USAGE_LIMIT`). Body includes a `limit` object — `{ limitHit, currentTier, targetTier, feature, cap, used, resetAt }` — describing the cap and the upgrade that lifts it.
- `404` — Resource not found or not owned by your account.
- `429` — Rate limit, project cap, or daily quota hit. Body includes a `code` field.
- `500` — Server error. Retry; if persistent, contact support.

---

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