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
required
Minimum string length: 1
Example:

"prompt-123"

Body

application/json
text
string
required

The new prompt wording (3 to 500 characters).

Required string length: 3 - 500

Response

201 - application/json

The replacement prompt.

promptId
string
required
archivedPromptId
string
required