# Logs

| Method | Path | What it does | Permission | Sudo | Approval |
|---|---|---|---|---|---|
| GET | `/api/logs/retention` | Get Retention | `server.read` |  |  |
| PUT | `/api/logs/retention` | Set Retention | `server.manage` | yes |  |
| DELETE | `/api/logs/retention` | Clear Retention | `server.manage` | yes |  |
| GET | `/api/logs/search` | Search Logs | `apps.read` |  |  |

