====== Restoring a Password ====== The restore action can restore an earlier state of a password. **Methods:** PATCH\\ **URL:** /api/1.0/password/restore\\ **State:** 200 ===== Arguments ===== * id: String * revision: String ===== Notes ===== * If no revision is given and the password is in trash, it will be removed from trash * If no revision is given and the password is not in trash, nothing is done * If a revision is given and the revision is marked as in trash, it will be removed from trash * If a revision is given that does not belong to the model, an "Invalid revision id" error will be returned. * The action will fail if the password is shared but the revision to restore does not meet the requirements for sharing * This action will always create a new revision * The server side encryption type may change * If the folder does not exist anymore, it will be moved to the base folder * Tag relations can not be restored * Deleted passwords can not be restored