Hosting: Databases

Change database password

Changes the password for the specified database user.

The database name must be the full name returned by the list databases endpoint. The password must also be updated in any website configuration that uses this database.

patch/api/hosting/v1/accounts/{username}/databases/{name}/change-password

Request

  • Base URL: https://developers.hostinger.com
  • URL: https://developers.hostinger.com/api/hosting/v1/accounts/{username}/databases/{name}/change-password
  • Auth: HTTP bearer

Path parameters

usernamestring required
Example:u123456789
namestring required
Example:u123456789_test_db

Full database name as returned by the list databases endpoint.

Request body

passwordstring password required

New database user password.

Example request

{
  "password": "Secu4ePa$$wor!D"
}

Response

Success empty response

messagestring

Example response

{
  "message": "Request accepted"
}

Changes

No recorded changes to this operation across all 130 revisions of this API.