Skip to main content
PUT
Update a pre-prompt
Modify any combination of key, publicValue, maskedValue, description, or tags for an existing pre-prompt. Authenticate with BACKEND_SECRET headers.

Request Body

All fields are optional. Only include the fields you want to update.

Headers

X-Backend-Secret
string

Backend secret token required for admin-only endpoints. Provide either this header or Authorization: Bearer <secret>.

Path Parameters

id
string
required

PrePrompt identifier (UUID).

Required string length: 8 - 64

Body

application/json
key
string
Required string length: 2 - 64
Pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{1,63}$
publicValue
string
Required string length: 1 - 512
maskedValue
string
Required string length: 1 - 4000
description
string | null
Maximum string length: 500
tags
string[] | null
Maximum array length: 16
Maximum string length: 50

Response

PrePrompt updated.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required