POST api/DBRename?dbNameOld={dbNameOld}&dbNameNew={dbNameNew}

Renames an existing database

Request Information

Parameters

NameDescriptionAdditional information
dbNameOld
Current name of the database

Define this parameter in the request URI.

dbNameNew
New name of the database

Define this parameter in the request URI.

inputData
Contains super admin pw and the authentication token from Login

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "SuperAdminPW": "password of the super admin",
  "AuthToken": "your authentication token"
}

application/xml, text/xml

Sample:
<DatabaseAccessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/openErpRestApi.Models">
  <AuthToken>your authentication token</AuthToken>
  <SuperAdminPW>password of the super admin</SuperAdminPW>
</DatabaseAccessRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>