Chapter 15: Updating Databases

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:

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"
}