Skip to main content
Update an existing prompt’s metadata or content. If the content changes, a new version is automatically created.

Parameters

Response

Returns the updated Prompt object with the new version number if content changed.

Examples

Update Metadata Only

Update Content (Creates New Version)

Update Model and Provider

Versioning Behavior

Content changes automatically create a new version. This allows you to track changes over time and see which version was used for each span.

Error Handling