Change password

Set password

Set a new password for the current user.

POST/me/password
Authorization
Body
currentPassword*string (password)

The current password as an extra precaution.

newPassword*string (password)

The new password to set.

Response

OK

Request
const response = await fetch('/me/password', {
    method: 'POST',
    headers: {
      "Authorization": "Bearer jwt",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      "currentPassword": "password",
      "newPassword": "password"
    }),
});
const data = await response.json();
Response
{
  "code": "text",
  "message": "text"
}

Last updated