cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Database → Update PostgreSQL username

AI-generated

Summary

Rename a PostgreSQL database user by specifying the current username and a new username, along with setting a new password for the user. Optionally specify the database user's owner (cpuser).

Inputs

  • Oldname (required) — The database user's current name.
  • Newname (required) — The database user's new name. If the database prefix is enabled, the new name must include the database prefix for the account.
  • Password (required) — The database user's new password.
  • Cpuser — The database user's owner.

Output shape

a single response object from the WHM API indicating success or failure of the rename operation

The output contains the WHM API response. Errors may be returned if parameters are invalid or operation fails. No pagination or listing; the response corresponds to the rename request result.

Links

Discussion