Restores a previous system prompt version.
Restores a saved system prompt version as the agent's current prompt.
The restore records a new history version and returns that version. Use the system prompt versions endpoint to find a version id.
<Check title="Required Permissions" icon="key">The user must have manage access to the agent.</Check>
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
agentId
The agent id.
systemPromptVersionId
The prompt version id.
Response
OK
id
The prompt version id.
agentId
The agent id.
versionNumber
The version number, assigned in order of creation.
isCurrent
Whether this is the agent's current system prompt.
systemPrompt
The system prompt.
createdOn
The creation time of the system prompt version.
createdBy
The user who created the system prompt version.
Errors
401
Unauthorized Error
404
Not Found Error

