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

# Update Prompt

`PUT /prompts/{prompt_id}`

## Request

- Base URL: `https://dev.whispa.net` (the document declares no server; this is the origin it was published from)
- URL: `https://dev.whispa.net/prompts/{prompt_id}`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `auth/bearer/login`
  - API key in cookie `access_token`

Update an existing prompt.

## Path parameters

- `prompt_id` string, uuid, required

## Request body

- PromptUpdate: Input schema for updating an existing prompt.
  - `name` string, nullable
  - `type` string, nullable
  - `content` string, nullable
  - `description` string, nullable
  - `config` PromptConfigInput: Type-specific configuration for prompts. For coaching prompts, includes dimension definitions. Can be extended for other prompt types as needed.
    - `dimensions` object, nullable: Coaching dimensions (only for coaching prompts)

## Response `200`

Successful Response

- PromptResponse: Response data for a prompt.
  - `id` string, uuid, required
  - `name` string, required
  - `type` string, required
  - `content` string, required
  - `description` string, nullable, required
  - `config` object, nullable: Type-specific configuration
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/whispa/apis/whispa-api.md) - [All operations](https://skmtc.dev/whispa/apis/whispa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whispa/apis/whispa-api/revisions/12c2e4aca43c?raw)
