MINARA

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.

MethodPOST
Path/v1/workspace/files/:name/restore-template
AuthAuthorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set
Categoryworkspace

Request body

(empty)

Response body

{ "ok": true, "data": { "name": "SOUL.md", "restored": true } }

On this page