Palbase ai · API
POST
/ai/templates/{name}/rollbackRoll back the published version of a template
Roll back the published version of a template.
Called by your server, with the project's secret key.
Path
namestring · requiredTemplate slug name.Request body
versioninteger · optionalTarget version number.curl
curl -X POST "https://<your-ref>.palbase.studio/ai/templates/<name>/rollback" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"version":1}'Responses
200Rolled back template
400HTTP 400 error
401HTTP 401 error
403HTTP 403 error
404HTTP 404 error
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation RollbackTemplate of ai's contract.