Skip to main content
POST
Replace a prompt, resetting history

Authorizations

Authorization
string
header
required

A workspace API key issued in Settings → Developer, sent as Bearer sk_….

Path Parameters

promptId
string<uuid>
required
Example:

"0b6f3c1e-2d4a-4f8e-9c1b-7a2e5d9f3c10"

Body

application/json
text
string
required

The new prompt wording (3 to 500 characters).

Required string length: 3 - 500

Response

The replacement prompt.

promptId
string
required
archivedPromptId
string
required