Odoo Rename Database¶
Danger
The super administrator password of the database manager is required to perform this operation.
Renames the db
database to new_db_name
using the rename
method of the db
service.
Method
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "db",
"method": "rename",
"args": [
"password",
"db",
"dump_file"
]
}
}
Request¶
Restore the prod
database.
Request body
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "db",
"method": "dump",
"args": [
"super_admin_passwd",
"prod",
"prod_super"
]
}
}