|  | REST API
    4.0.0
    REST API for SafeNet Network HSMs | 
Changes the password for an HSM role.
This resource is forbidden on the HSM.
The serial number of the HSM of interest
Use:  Required  
JSON Schema:  
Object type: string
The identifier of the role of interest
Use:  Required  
JSON Schema:  
Object type: string
The existing password for the role
Use:  Required  
JSON Schema:  
Object type: string
The desired password for the role
Use:  Required  
JSON Schema:  
Object type: string
(Optional) Change the secret for a PED-authenticated HSM. This parameter applies for the CO (Admin User) role.
Use:  Required  
JSON Schema:  
Object type: boolean
Success
"Location" is the URL to the role and is returned in the server response. You can use "Location" to form a GET resource to query the role. 
 see GET /api/lunasa/hsms/{hsmid}/roles/{roleid} 
 For PED-based partitions, "Location" is the URL to the task spawned to change the password for the HSM role. 
Unexpected error
HSM or role does not exist.
 
   PATCH
   https://1.2.3.4:8443/api/lunasa/hsms/154704/roles/co
   { "newPassword": "Aaaa1234",
     "oldPassword": "myPassword" }
 
{
password-based HSM:
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/api/lunasa/hsms/154704/roles/cu', 'Content-Length': '2', 'Access-Control-Allow-Credentials': 'true'}
PED-based HSM:
{'Access-Control-Allow-Origin': '*', 'Content-Type': 'application/json', 'Location': '/tasks/9', 'Content-Length': '712', 'Access-Control-Allow-Credentials': 'true'}
}