Unlock user
POST
https://app.speybooks.com/api/v1/admin/users/{id}/unlockUnlock a user account that was locked due to failed login attempts. Sets locked_until = NULL and resets failed_attempts to 0.
Returns 404 if the user does not exist or is not currently locked.
Side Effects
- Writes
USER_UNLOCKEDtoadmin_audit_log
Path parameters
id string requiredUser ID to unlock.
Response
200 Account unlocked. Failed attempts reset to zero.
Error codes
400 Invalid user ID.
404 User not found or not currently locked.