v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Postgresql
PostgreSQL User Management

Remove PostgreSQL user privileges

This function revokes all privileges for a PostgreSQL® database from a database user.

Important:

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

get/Postgresql/revoke_all_privileges

Query parameters

databasestring required
Example:example_database

The database's name.

Note

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

userstring required
Example:example_dbuser

The database user's name.

Note

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

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "revoke_all_privileges",
  "module": "Postgresql",
  "result": {
    "status": 1
  }
}