Create PostgreSQL database

This function creates a PostgreSQL® database.

Important:

When you disable the PostgreSQL role, the system disables this function.

Authorizations:
query Parameters
name
required
string

The database's name.

Note:

If database prefixing is enabled, this parameter must include the database prefix for the account.

Example: name=database

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

uapi --output=jsonpretty \
  --user=username \
  Postgresql \
  create_database \
  name='database'

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "create_database",
  • "module": "Postgresql",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}