Skip to main content
POST
Updates a prompt’s content and metadata. If content changes, a new version is automatically created in the prompt’s history. The user must be the prompt owner, have write access, or be an admin.

Path Parameters

string
required
The unique prompt ID to update

Request Body

string
required
Command trigger for the prompt. Can be changed if the new command is not already in use.
string
required
Display name for the prompt
string
required
The prompt template content
object
Additional data to associate with the prompt
object
Metadata for the prompt
array
Array of tag strings for categorizing the prompt
array
Array of access grant objects. If provided, access grants will be updated.
string
Message describing this version update (for version history)
boolean
default:true
Whether to set the new version as the production version. If false, creates a version but keeps the current production version active.

Response

string
required
Unique identifier for the prompt
string
required
Command trigger for the prompt
string
required
ID of the user who originally created the prompt
string
required
Display name for the prompt
string
required
The prompt template content
object
Additional data associated with the prompt
object
Metadata for the prompt
array
Array of tag strings
boolean
required
Whether the prompt is currently active
string
ID of the active history entry. Updated to new version if is_production is true.
integer
required
Unix timestamp (epoch seconds) when prompt was created
integer
required
Unix timestamp (epoch seconds) when prompt was last updated
array
default:[]
Array of access grant objects

Version History

When content changes (name, command, content, tags, or access_grants), a new version is automatically created:
  • The version includes a snapshot of the prompt state
  • A commit message can be provided to describe the changes
  • The version is linked to the user making the update
  • By default, the new version becomes the production version
  • Set is_production: false to create a draft version

Error Responses

  • 400 Bad Request: Command is already in use by another prompt
  • 401 Unauthorized: User lacks write access to this prompt
  • 404 Not Found: Prompt does not exist