View .md

Storage Sense endpoints (Admin API)

3 FeatherPanel Admin API endpoints from admin/storage-sense.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 15b94e9 on .

On this page

Defined in backend/app/routes/admin/storage-sense.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/admin/storage-sense

Auth: AdminPermission: admin.storage_sense.viewRoute name: admin-storage-sense-summaryController: StorageSenseController::summaryroute source

Storage Sense summary Row counts and how many rows would be removed for a retention period.

curl -X GET "$PANEL_URL/api/admin/storage-sense" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 OK · 400 Bad request

POST/api/admin/storage-sense/purge

Auth: AdminPermission: admin.storage_sense.manageRoute name: admin-storage-sense-purgeController: StorageSenseController::purgeroute source

Purge old rows

curl -X POST "$PANEL_URL/api/admin/storage-sense/purge" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 OK · 400 Bad request

POST/api/admin/storage-sense/purge-batch

Auth: AdminPermission: admin.storage_sense.manageRoute name: admin-storage-sense-purge-batchController: StorageSenseController::purgeBatchroute source

Purge multiple targets

curl -X POST "$PANEL_URL/api/admin/storage-sense/purge-batch" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 OK · 400 Bad request