Zum Hauptinhalt springen

Change your password

PUT /v2/users/self/credentials/password/
v2
PUT
user-change-password

Request

Responses

application/json

Your password has been changed.

  • expiresstring (date-time)
    required

    The expiration date of the token.

  • tokenstring
    required

    Public token to identify yourself against the api gateway.

application/json

An additional second factor code is necessary to process the request.

  • *
  • Usage examples

    $ curl \
    --fail \
    --location \
    -X PUT \
    -d '{"multiFactorCode":"123456","newPassword":"string","oldPassword":"string"}' \
    -H "Authorization: Bearer $MITTWALD_API_TOKEN" \
    -H 'Content-Type: application/json' \
    https://api.mittwald.de/v2/users/self/credentials/password