/v2/databases/{database_cluster_uuid}/users/{username}Update a Database User
To update an existing database user, send a PUT request to /v2/databases/$DATABASE_ID/users/$USERNAME
with the desired settings.
Note: only settings can be updated via this type of request. If you wish to change the name of a user,
you must recreate a new user.
For PostgreSQL clusters, you can update settings.pg_allow_replication to enable or
disable replication privileges for the user. When omitted, the value defaults to false.
For Kafka and OpenSearch clusters, additional options can be configured in the
settings object (for example, topic or index ACLs).
Updating users is supported for PostgreSQL, Kafka, and OpenSearch clusters. For
other engines, the request returns a 422. MongoDB roles and database access are
set with settings.mongo_user_settings when creating a user and cannot be
changed afterward; recreate the user to apply different roles or databases.
The response will be a JSON object with a key called user. The value of this will be an
object that contains the name of the updated database user, along with the settings object that
has been updated.
A 401 is returned: Authentication failed due to invalid credentials. A 404 is returned: The resource was not found. A 422 is returned: Unprocessable Entity. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.