Refresh spam database
POST
/api/admin/system/spam-filter/refresh
const url = 'https://hitkeep.com/api/admin/system/spam-filter/refresh';const options = {method: 'POST', headers: {cookie: 'hk_token=<hk_token>'}};
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://hitkeep.com/api/admin/system/spam-filter/refresh \ --cookie hk_token=<hk_token>Downloads and rebuilds the spam database from the configured feeds. Writes an instance audit log entry with the actor and outcome.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Refresh result
Media type application/json
object
message
string
status
string
Example generated
{ "message": "example", "status": "example"}Spam filter not available
Media type application/json
object
message
string
Example generated
{ "message": "example"}