Files
dashback/docs/api/routes/vfs/applets-restore.md
2026-10-16 13:59:02 +02:00

41 lines
923 B
Markdown

# `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`](../events.md)).
## Response `200`
System applets restored successfully
```json
{
"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`._