Create PostgreSQL user

This function creates a PostgreSQL® database user.

Important:

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

SecurityBasicAuth
Request
query Parameters
name
required
string

The database user's name.

Note:

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

Example: name=dbuser
password
required
string

The new user's password.

Example: password=123456luggage
Responses
200

HTTP Request was successful.

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
get/Postgresql/create_user
Request samples
uapi --output=jsonpretty \
  --user=username \
  Postgresql \
  create_user \
  name='dbuser' \
  password='123456luggage'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "create_user",
  • "module": "Postgresql",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}