Skip to content

Admin Changepassword

VAISHAKH-GK edited this page Apr 17, 2023 · 2 revisions

Change Password

Used to change as admin password.

URL : /api/admin/change-password

Method : PUT

Auth Required : Yes

Data constraints

{
    "password": "[new password in plain text]"
}

Data example

{
    "password": "new-password"
}

Success Response

Code : 200 OK

Content example

"Password Changed"

Error Response

Condition : If not logged in as admin user.

Code : 401 Unauthorized

Content :

"Not Logged In"

Condition : Server Error

Code : 500 Internal Server Error

Content :

"Request failed"

Clone this wiki locally