Skip to main content
POST
Change the password for the admin user identified by the current authentication token. Requires the current password and the new password. The new password should meet the same complexity rules as sign-up (see Create Admin Account).
Self-Hosted Only: This endpoint is available only on self-hosted Databrain instances.
Authentication Requirement: This endpoint requires an authenticated admin user. Use the Bearer token from Create Admin JWT.

Authentication

Use a valid admin JWT in the Authorization header. Obtain one via Create Admin JWT.

Headers

string
required
Bearer token for the admin whose password is being changed.
string
required
Must be application/json when sending a JSON body.

Request Body

string
required
The admin’s current password.
string
required
The new password. Should meet the same requirements as sign-up: minimum 8 characters, at least one uppercase, one lowercase, one digit, one special character, no spaces.

Response

On success, the API returns 200 with a JSON object:
object
Wrapper object for the response payload.
boolean
true when the password was changed successfully.
On error, the API returns a JSON object with error.code and error.message and an appropriate HTTP status (400 or 500).

Examples

HTTP Status Code Summary

Possible Errors