def METHOD_NAME(invitation_id):
    """Update the invitation specified by the provided id as retried."""
    origin = request.environ.get('HTTP_ORIGIN', 'localhost')
    try:
        invitation = InvitationService.find_invitation_by_id(invitation_id)
        if invitation is None:
            response, status = {'message': 'The requested invitation could not be found.'}, \
                               http_status.HTTP_404_NOT_FOUND
        else:
            user = UserService.find_by_jwt_token()
            response, status = invitation.update_invitation(user, origin).as_dict(), http_status.HTTP_200_OK
    except BusinessException as exception:
        response, status = {'code': exception.code, 'message': exception.message}, exception.status_code
    return response, status