dots.v2.databases.byDatabase_cluster_uuid().users.byUsername().reset_auth.post()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.databases.byDatabase_cluster_uuid(database_cluster_uuid).users.byUsername(username).reset_auth.post(body: Reset_authPostRequestBody, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | Reset_authPostResponse>Description
To reset the password for a database user, send a POST request to
/v2/databases/{database_cluster_uuid}/users/{username}/reset_auth.
For mysql databases, the authentication method can be specifying by
including a key in the JSON body called mysql_settings with the auth_plugin
value specified.
The response will be a JSON object with a user key. This will be set to an
object containing the standard database user attributes.
Parameters
Path Parameters
database_cluster_uuidstring requiredExample:
9cc10173-e9ea-4176-9dbc-a4cee4c4ff30A unique identifier for a database cluster.
usernamestring requiredExample:
app-01The name of the database user.
Request Body
mysqlSettingsobject optionalShow child properties
authPluginstring requiredA string specifying the authentication method to be used for connections
to the MySQL user account. The valid values aremysql_native_password
orcaching_sha2_password. If excluded when creating a new user, the
default for the version of MySQL in use will be used. As of MySQL 8.0, the
default iscaching_sha2_password.
Request Sample
Response Example
More Information
See /v2/databases/{database_cluster_uuid}/users/{username}/reset_auth in the API reference for additional detail on responses, headers, parameters, and more.