--- Title: Change password hashing algorithm requests alwaysopen: false categories: - docs - operate - rs description: REST API requests to change the hashing algorithm for user passwords. headerRange: '[1-2]' linkTitle: change_password_hashing_algorithm weight: $weight --- | Method | Path | Description | |--------|------|-------------| | [PATCH](#patch-change-password-hashing-algorithm) | `/v1/cluster/change_password_hashing_algorithm` | Change the hashing policy for user passwords | ## Change password hashing algorithm {#patch-change-password-hashing-algorithm} PATCH /v1/cluster/change_password_hashing_algorithm Changes the password hashing algorithm for the entire cluster. When you change the hashing algorithm, it rehashes the administrator password and passwords for all users, including default users. The hashing algorithm options are `SHA-256` or `PBKDF2`. The default hashing algorithm is `SHA-256`. #### Required permissions | Permission name | |-----------------| | [update_cluster]({{< relref "/operate/rs/references/rest-api/permissions#update_cluster" >}}) | ### Request {#patch-request} #### Example HTTP request PATCH /v1/cluster/change_password_hashing_algorithm #### Example JSON body ```json { "algorithm": "PBKDF2" } ``` #### Request headers | Key | Value | Description | |-----|-------|-------------| | Host | cnm.cluster.fqdn | Domain name | | Accept | application/json | Accepted media type | #### Request body Include a JSON object `{ "algorithm": "