/api/server/requery_size

Trigger a server-side re-query to recalculate or clean up file sizes.

Info

This endpoint requires authentication.

Info

This endpoint requires administrator privileges or higher.

POST
Request

Recalculate file sizes or delete files with missing data sources (advanced maintenance operation).

Body

Content-Type: application/json

PropertyTypeDescription
forceDeleteboolean?If true, remove files from the database with missing storage.
forceUpdateboolean?If true, update file size records, even if already set.

Example

Delete missing files and update sizes:

{
"forceDelete": false,
"forceUpdate": true
}

Response

Status: 200 OK

Content-Type: application/json

PropertyTypeDescription
statusstring?Status message indicating operation result.

Example

{
"status": "Requery complete. 3 files deleted, 42 sizes updated."
}


Last updated: 6/1/2025
Edit this page on GitHub