v1

latestOpenAPI 3.1.02026-07-242325051.4 MB
Account

Account:SetPassword

Set the password of an account. You need to supply a password and a token. This token will be sent in the mail when you have forgotten your password or when you have created your account. If 2FA is not set for your account, you will receive in the response a new token which can be used only to set 2FA for your account

patch/v2/accounts/password

Request body

passwordstring required
passwordTokenstring required

Example request

{
  "password": "Z3Jv(55:f}Tu-$5|",
  "passwordToken": "4ebb4595eab529e499b9b866707a956aee2bf4ab"
}

Response

OK

usernamestring

The username of the account

tokenstring nullable
2faSetupRequiredboolean

Example response

{
  "username": "robbert@example.com",
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  "2faSetupRequired": true
}