1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
//! [POST /_matrix/client/r0/account/password](https://matrix.org/docs/spec/client_server/r0.6.0#post-matrix-client-r0-account-password) use ruma_api::ruma_api; use crate::r0::uiaa::{AuthData, UiaaResponse}; ruma_api! { metadata { description: "Change the password of the current user's account.", method: POST, name: "change_password", path: "/_matrix/client/r0/account/password", rate_limited: true, requires_authentication: true, } request { /// The new password for the account. pub new_password: String, /// Additional authentication information for the user-interactive authentication API. pub auth: Option<AuthData>, } response {} error: UiaaResponse }