Reset a workspace file to its shipped template
POST /v1/workspace/files/:name/restore-template — Overwrite the workspace file with the shipped template from `src/workspace/templates/`. Useful when an operator wants to
POST /v1/workspace/files/:name/restore-template
Overwrite the workspace file with the shipped template from src/workspace/templates/. Useful when an operator wants to discard local edits and restart from the default. Files without a shipped template (HEARTBEAT.md is runtime-only) return 422.
| Method | POST |
| Path | /v1/workspace/files/:name/restore-template |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | workspace |
Request body
(empty)Response body
{ "ok": true, "data": { "name": "SOUL.md", "restored": true } }