Databases
Rotate database credentials
Resets the database role password through the provider and returns the new connection URI; the previous URI stops authenticating immediately. Rotation drops any live connections or pools still using the old credentials — plan to reconnect. Rotation is idempotent: if a rotation reports a persistence failure, rotating again issues a fresh working connection string.
post/api/v1/databases/{databaseId}/rotate-credentials
Request
- Base URLhttps://app.khotan.com
- URLhttps://app.khotan.com/api/v1/databases/{databaseId}/rotate-credentials
- Auth
- HTTP bearer
- or API key in header x-api-key
Path parameters
databaseIdstring required
Response
The new connection URI after rotation.
Changes
No recorded changes to this operation across all 1 revision of this API.