Delete old request stats (super admin)
POST
/system/prune/request-stats
const url = 'https://your-server.example/api/system/prune/request-stats';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"older_than_days":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-server.example/api/system/prune/request-stats \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "older_than_days": 1 }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
older_than_days
integer
Example generated
{ "older_than_days": 1}Responses
Section titled “Responses”Pruned.
Media typeapplication/json
object
key
additional properties
any
Example generated
{}