Prompts
Update Prompt
Update an existing prompt
PUT
Update a prompt’s metadata or content. If the content changes, a new version is automatically created.
Request
Bearer token with your API key:
Bearer tr_your_api_keyThe prompt slug to update
New display name
New URL-friendly identifier
New description (set to empty string to clear)
New array of prompt messages. If different from current content, creates a new version.
Response
Returns the updated prompt object with the new version number if content changed.Authorizations
API key starting with tr_
Path Parameters
The prompt slug to update
Body
application/json
Response
Prompt updated
Unique identifier for the prompt
URL-friendly identifier
Display name of the prompt
Description of the prompt
Model provider
Available options:
OPENAI, ANTHROPIC, GOOGLE, AMAZON_BEDROCK Default model for this prompt
Temperature setting for the model (0-2)
Top-p (nucleus) sampling setting (0-1)
Maximum output tokens limit
Current version number
Array of prompt messages
List of template variables extracted from content
ISO 8601 timestamp of creation
ISO 8601 timestamp of last update

