---
updatedAt: 2026-05-12T10:00:25.000Z
---

# Change current user's password using user ID

This operation enables you to change the current (logged in) user's password. The old password must be verified first. <br><br>**NOTE:** Once the password is changed, the user **MUST** logout and then login again using the new password before attempting another password change.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "User API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/user/{user_id}/password": {
      "put": {
        "tags": [
          "User API v1.0"
        ],
        "summary": "Change current user's password using user ID",
        "description": "This operation enables you to change the current (logged in) user's password. The old password must be verified first. <br><br>**NOTE:** Once the password is changed, the user **MUST** logout and then login again using the new password before attempting another password change.",
        "operationId": "changePasswordWithUserID",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "User ID of the logged in Sentinel user.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "Selects the requested response representation format.",
            "style": "form",
            "explode": true,
            "schema": {
              "type": "string",
              "default": "json",
              "example": "json",
              "enum": [
                "json"
              ]
            }
          }
        ],
        "requestBody": {
          "description": "Holds the sentinel user information for password change.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Provides the status of change the current (logged in) Sentinel user's password.",
            "headers": {},
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPasswordSucessResponse"
                }
              }
            }
          },
          "400": {
            "description": "BadRequestResponse indicates a request with invalid parameters.",
            "content": {}
          },
          "401": {
            "description": "UnauthorizedResponse signals an unauthorized API access.",
            "content": {}
          },
          "403": {
            "description": "ForbiddenResponse signals a request for a resource that does not exist or is not authorized.",
            "content": {}
          },
          "500": {
            "description": "GenericError generic error.",
            "content": {}
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {
      "UserPasswordRequest": {
        "type": "object",
        "required": [
          "confirm_password",
          "password"
        ],
        "properties": {
          "confirm_password": {
            "type": "string",
            "description": "User's current password."
          },
          "password": {
            "type": "string",
            "description": "User's new password."
          }
        }
      },
      "UserPasswordSucessResponse": {
        "properties": {
          "status": {
            "type": "number"
          },
          "redirect": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "proxy-enabled": true
  }
}
```