POST api/DBCreate?dbName={dbName}&demoData={demoData}&lang={lang}

Creates a new Database

Request Information

Parameters

NameDescriptionAdditional information
dbName
Name of the database

Define this parameter in the request URI.

demoData
demodate: true or false

Define this parameter in the request URI.

lang
language (de-DE)

Define this parameter in the request URI.

inputData
Contains the super admin pw, the admin pw of the new database 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",
  "DBAdminPW": "admin pw of the new database",
  "AuthToken": "your authentication token"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Response body formats

application/json, text/json

Sample:
1

application/xml, text/xml

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