'undelete( self, trans, id, **kwd )
* POST /api/histories/deleted/{id}/undelete:
undelete history (that hasn\'t been purged) with the given ``id``
:type   id:     str
:param  id:     the encoded id of the history to undelete
:param  keys: same as the use of `keys` in the `index` function above
:param  view: same as the use of `view` in the `index` function above
:rtype:     str
:returns:   \'OK\' if the history was undeleted'

@expose_api
def undelete(self, trans, id, **kwd):

    history_id = id
    history = self.history_manager.get_owned(self.decode_id(history_id), trans.user, current_history=trans.history)
    self.history_manager.undelete(history)
    return self.history_serializer.serialize_to_view(history, user=trans.user, trans=trans, **self._parse_serialization_params(kwd, 'detailed'))
