Skip to main content

Update User Password

PUT 

/api/v32.04/users/password

x-prisma-cloud-target-env: {"permission":"user","saas":false,"self-hosted":true}
x-public: true

Changes the password of a user.

To invoke this endpoint in the Console UI:

  1. Click on the user icon near the top-right corner of the Console UI.
  2. Select Change password.
  3. Enter the old and new passwords.
  4. Click the Save button.

cURL Request

The following cURL command replaces the password of USER (the user authenticating with Console to call this endpoint).

$ curl 'https://<CONSOLE>/api/v<VERSION>/users/password' \
-k \
-X PUT \
-u <USER> \
-H 'Content-Type: application/json' \
-d \
'{
"oldPassword": "<OLD_PASSWORD>",
"newPassword": "<NEW_PASSWORD>"
}'

Note: No response will be returned upon successful execution.

Request

Body

    newPassword string

    New password to assign to the user who is invoking the API.

    oldPassword string

    User's existing password to replace.

Responses

OK

Loading...