meta { name: Add Ebook Folder type: http seq: 1 } post { url: {{base_url}}/api/auth/ebook-folders body: json auth: inherit } body:json { { "folder_path": "/app/uploads" } } settings { encodeUrl: true timeout: 0 } docs { ## Add Ebook Folder - DEPRECATED ⚠️ **This endpoint is deprecated and will return HTTP 410 Gone.** **Use new library system instead:** 1. Create a library: `POST /api/libraries` with type "ebooks" 2. Add folder to library: `POST /api/libraries/{id}/folders` 3. Manage library visibility: `POST /api/libraries/visibility` **Migration Example:** Old: POST `/api/auth/ebook-folders` with `{ "folder_path": "/path/to/books" }` New: POST `/api/libraries` with `{ "name": "My Books", "type": "ebooks" }` Then POST `/api/libraries/{library-id}/folders` with `{ "folder_path": "/path/to/books" }` **Response:** HTTP 410 Gone with deprecation message **Status Codes:** - 410: Gone (endpoint deprecated) - 401: Unauthorized - 403: Forbidden (admin access required) **Replacement Endpoints:** - `POST /api/libraries` - Create new library - `POST /api/libraries/{id}/folders` - Add folder to library - `GET /api/libraries` - List all libraries (admin) }