Odoo Database Existence¶
Checking if a database exists can be done using the db_exist method of the db service.
Method
{
  "jsonrpc": "2.0",
  "method": "call",
  "params": {
    "service": "db",
    "method": "db_exist",
    "args": [
      "db"
    ]
  }
}
Request¶
Checks if the db database exists in this server.
Request body
{
  "jsonrpc": "2.0",
  "method": "call",
  "params": {
    "service": "db",
    "method": "db_exist",
    "args": [
        "prod"
    ]
  }
}