Rollback template to previous version (Cloud-only)
/v1/templates/{template_name}/rollback
Rollback the current working version of a template to a previous saved version. If the current version has unsaved changes, they will be automatically saved as a new version before rollback.
Path Parameters
template_name: string
Body Parameters
Returns
success: boolean
message: optional string
Rollback template to previous version (Cloud-only)
curl https://api.letta.com/v1/templates/$TEMPLATE_NAME/rollback \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LETTA_API_KEY" \
-d '{
"version": "version"
}'
{
"success": true,
"message": "message"
}
Returns Examples
{
"success": true,
"message": "message"
}