41 lines
902 B
Markdown
41 lines
902 B
Markdown
# `POST /vfs/skills/restore`
|
|
|
|
Protected. Requires a valid session cookie (`credentials: 'include'`).
|
|
|
|
Restore system default skills
|
|
|
|
Restores all shipped system default SKILL files into the active virtual filesystem (VFS)
|
|
for the authenticated user's selected company, overwriting existing system skills with their upstream definitions.
|
|
|
|
|
|
## Signals
|
|
|
|
On success, emits SSE signal: `vfs` (see [`GET /events`](../events.md)).
|
|
|
|
## Response `200`
|
|
|
|
System skills 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`._
|