Check whether a credential can be rolled back
GET/api/v1/CredentialPasswordHistory/CanRollback/:credentialId
Returns true when the credential has at least one stored password history entry, which means its password can be rolled back. Use it before you offer a rollback.
Permission required: Admin or App role, or the UserPlus role with the Rotate Services credential permission. The session must also satisfy the multi-factor authentication requirement.
Request
Responses
- 200
- 400
- 403
A JSON boolean, true when a rollback is possible.
The credential ID is empty or the check failed. The body contains the error message.
The signed-in user does not have the required role, or is a UserPlus user without the Rotate Services permission, or has not satisfied the MFA requirement.