API Endpoints: Password

PUT /password

Apply a new password.

Path parameters:

  • None

Required parameters:

  • password: The current password.
  • new_password: The new password with a minimum length of 3 and maximum length of 30.

Optional parameters:

  • None

Example request

curl -X PUT "https://landscape.canonical.com/api/v2/password" -d '{"password": "pwd", "new_password": "more_secure_pwd"}' -H Authorization:"Bearer $JWT"

This page was last modified 5 months ago. Help improve this document in the forum.