Create an empty project

Description

Creates a new empty project and retrieves project properties.

URL

/qcbin/v2/sa/api/domains/{domain}/projects

HTTP Method

POST

Remarks

To create a new empty project, POST a string compliant with the Project schema reference that contains following fields:

name (Required)

db-type (Required)

db-server-name (Required)

tablespace (Required for Oracle database)

temp-tablespace (Required for Oracle database)

is-active

is-unicode

Content-Type: application/xml, application/json

Accept: application/xml, application/json

Returns

On success, the HTTP return value is 201.

On success, returns the full data of the created project in an XML/JSON string compliant with the Project schema reference.

Input Example

Content-Type: application/json

{

  "create-project": {

  "name": "emptyPro",

  "db-type": 2,

  "db-server-name": "mssql_db",

  "tablespace": "",

  "temp-tablespace": "",

  "is-active": false,

  "is-unicode": false

 }

}

Return Value Example

Accept: application/json

{

   "project": {

      "domain-name": "TESTDOMAIN",

      "create-from-domain": "TEMPLATES",

      "is-auto-mail-enabled": false,

      "description": "Created on 6/11/2019 3:39:00 PM",

      "db-server-name": "mssql_db",

      "uid": "b8f32842-cf5a-4a28-b507-6eec2cafd56e",

      "id": 46,

      "users-quota": -1,

      "domain-id": 25,

      "is-qpm-auto-calc-enabled": true,

      "is-active": false,

      "is-unicode": false,

      "db-name": "testdomain_emptypro_db",

      "version": "15.00",

      "search-language": "English",

      "project-type": "Standard",

      "is-template": false,

      "exception-file": "",

      "is-db-native-auth": false,

      "db-type": 2,

      "name": "emptyPro",

      "physical-directory": "C:\\ProgramData\\Micro Focus\\ALM\\repository\\qc\\TESTDOMAIN_25\\emptyPro\\",

      "db-connstr-format": "jdbc:mercury:sqlserver://16.186.77.172:1433",

      "create-from-project": "Empty Database",

      "has-vcs-db": false

  }

}