latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Databases
PostgreSQL Databases

Update PostgreSQL user password

This function changes a PostgreSQL® database user's password.

Important:

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

get/set_postgresql_password

Query parameters

passwordstring required
Example:12345luggage

The database user's new password.

userstring required
Example:username

The account's username.

cpuserstring
Example:example

The database user's owner.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "set_postgresql_password",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}