Updating of any of the internal databases can be done by performing an HTTP POST towards the following URI:
/api/updatecenter
The POST body can contain only one of the following options:
To force an update of the IDP database:
update=idp
To force an update of the antivirus database:
update=antivirus
To force an update of the IP reputation database:
update=ipreputation
If the POST is accepted, the JSON response sent back by cOS Core will be the following:
{ "error":false }
If there is an error, cOS Core will return a message indicating the problem. For example, the following JSON message might be returned to the client:
{ "error":true, "error_code":400, "error_message":"Bad Request, malformed" }