POST
Change the caller's password

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Body

application/json
current_password
string
required
new_password
string
required
Minimum string length: 8
code
string

A current TOTP code; required when MFA is enabled.

Response

Changed; every session has ended.