POST – Change BIOS password settings
Use the POST method to change BIOS password settings
Request URL
POST https://<BMC_IPADDR>/redfish/v1/Systems/1/Bios/Actions/Bios.ChangePassword
Request body
Field | Type | Description |
---|---|---|
title | String | ChangePassword |
target | Link | The link of this action. |
PasswordName | String | "UefiAdminPassword" or "UefiPowerOnPassword". |
OldPassword | String | Configure parameter OldPassword. |
NewPassword | String | Configure parameter NewPassword, empty value will clear current password. If it's not empty, the password length must be at least 8 and at most 20. The password rule shall follow the Lenovo UEFI password rule, no three continuous and same characters appear in password. |
Note
To recover UEFI Admin password, leave both OldPassword and NewPassword empty to clear it.
Response body
None
Status code
HTTP Status Code | Error Message ID |
---|---|
200 | RebootRequired |
400 | ActionParamFormatError |
403 | InsufficientPrivilege |
500 | InternalError |
Give documentation feedback