Templates
Restore Template Version
Restore a template’s schema and submitters from a previous version snapshot. Creates a pre-restore snapshot first so you can undo the restore if needed.
POST
Restore Template Version
Documentation Index
Fetch the complete documentation index at: https://docs.spitshake.io/llms.txt
Use this file to discover all available pages before exploring further.
Path parameters
Template ID (e.g.,
tpl_7VQhP2tM9xA1kR8bN).Body parameters
The version snapshot ID to restore from. Get this from the List Versions endpoint.
Response
Returns the restored template object with the full schema.Example
Common use case: recovering from accidental PUT
If aPUT /api/templates/:id with a partial schema accidentally wiped fields:
- Call
GET /api/templates/:id/versionsto find the version before the wipe (look for the highestfield_count) - Call
POST /api/templates/:id/restore_versionwith that version’sid - Verify with
GET /api/templates/:idthat all fields are restored
PUT /api/templates/:id replaces the entire schema array. To update specific fields, always GET the full schema first, modify the fields you need, and PUT the complete array back. There is no PATCH endpoint for partial schema updates.Restore Template Version