Refresh spam database REST API
POST
/api/admin/system/spam-filter/refresh
const url = 'https://app.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://app.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 typeapplication/json
object
message
string
status
string
Examplegenerated
{ "message": "example", "status": "example"}Spam filter not available
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}