---
title: "Edit database master credentials"
method: PUT
path: "/database/{databaseId}/masterCredentials"
tags: ["Database Main Calls"]
---

# Edit database master credentials

`PUT /database/{databaseId}/masterCredentials`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/database/{databaseId}/masterCredentials`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/database/:databaseId/masterCredentials/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `databaseId` string, uuid, required

## Request body

- CredentialsRequest
  - `login` string, required
  - `password` string, required

## Response `200`

Edit database credentials

- Credentials
  - `host` string, required
  - `port` integer, required
  - `login` string, required
  - `password` string, required

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
