ki.templates.rollback
Stellt einen frueheren versionierten Prompt-Stand wieder her
Hilfe
Laedt einen History-Eintrag und ueberschreibt content und cloud_system_prompt des Templates. Der aktuelle Stand wird vorher als History-Eintrag archiviert.
Parameter
| Name | Typ | Required | Default | Beschreibung |
|---|---|---|---|---|
template_id |
integer | Ja | — | Template-ID |
history_id |
integer | Ja | — | History-Eintrag-ID |
Rückgabe
Aktualisiertes Template inkl. Bestaetigung
Beispiel-Prompts
- Setze Template 7 auf History-Eintrag 42 zurueck
Confirmation
Diese Funktion erfordert eine Bestätigung vor der Ausführung.
Template: template {template_id} auf Version {history_id} zuruecksetzen
Changelog
Area: prompt_templates | Action: update
HTTP-Request (curl)
curl -X POST 'http://HOST:8502/api/admin/ki/prompt-templates/{template_id}/rollback/{history_id}' \
-H 'Cookie: kiara_admin_session=SESSION' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Content-Type: application/json' \
-d '{
"template_id": "...",
"history_id": "..."
}'