923 B
923 B
POST /vfs/applets/restore
Protected. Requires a valid session cookie (credentials: 'include').
Restore system default applets
Restores all shipped system default example applets (.applet.js) into the active virtual filesystem (VFS) for the authenticated user's selected company, overwriting existing system applets with their upstream definitions.
Signals
On success, emits SSE signal: vfs (see GET /events).
Response 200
System applets restored successfully
{
"success": true,
"restored": [
"…"
],
"count": 1
}
Errors
| Status | Description |
|---|---|
| 400 | No company selected — {"error":"…"} |
| 401 | Unauthorized — {"error":"…"} |
| 403 | Not authorized — {"error":"…"} |
| 500 | Restore failed — {"error":"…"} |
Generated from @openapi JSDoc. Do not edit by hand — run npm run docs:api.