# Edit the Password of an Account This API updates the password of a specific account in PAM360. The response confirms whether the password has been updated successfully. ## Request URL ```text https://:/restapi/json/v1/resources//accounts//password ``` | Parameter | Description | Values | |---|---|---| | **RESOURCEID** | The ID of the resource for which the password needs to be edited.
**Type :** Integer
**Mandatory :** Yes | **Default Value :** N/A | | **ACCOUNTID** | The ID of the account for which the password needs to be edited.
**Type :** Integer
**Mandatory :** Yes | **Default Value :** N/A | ## Header Parameters ```json { "AUTHTOKEN": "<>" } ``` | Parameter | Description | Values | |---|---|---| | **AUTHTOKEN** | Authentication token for the user to authorize the API request.
**Type :** String
**Mandatory :** Yes | **Default Value :** N/A | ## Body Parameters ```json INPUT_DATA = { "operation": { "Details": { "NEWPASSWORD": "dinh&@!", "RESETTYPE": "LOCAL", "REASON": "Password Expired" } } } ``` | Parameters | Description | Values | |---|---|---| | **NEWPASSWORD** | The new password to be set for the account.
**Type :** String
**Mandatory :** No | **Default Value :** N/A | | **RESETTYPE** | Specifies how the password reset should be performed.
**Type :** String
**Mandatory :** No | **Default Value :** N/A | | **REASON** | Reason provided for resetting the password.
**Type :** String
**Mandatory :** No | **Default Value :** N/A | ## Sample Request ```bash curl -X PUT -H "AUTHTOKEN:<>" -H "Content-Type: application/x-www-form-urlencoded" --url https://:/restapi/json/v1/resources/21/accounts/301/password --data-urlencode INPUT_DATA={"operation":{"Details":{"NEWPASSWORD":"Test12345$","RESETTYPE":"LOCAL","REASON":"Outdated Password","TICKETID":"7"}}} ``` ## Sample Response ```json { "operation": { "result": { "message": "Password changed successfully", "status": "Success" }, "name": "CHANGE PASSWORD" } } ```