def update
      unless kpi.present? && kpi.update(kpi_update_params)
        return render json: { errors: 'Cannot update kpi' }, status: :bad_request
      end

      MnoEnterprise::EventLogger.info('kpi_update', current_user.id, 'Template KPI Update', kpi)
      @nocontent = !params['metadata']
      render 'show'
    end
def update
      unless kpi.present? && kpi.update(kpi_update_params)
        return render json: { errors: 'Cannot update kpi' }, status: :bad_request
      end

      MnoEnterprise::EventLogger.info('kpi_update', current_user.id, 'Template KPI Update', kpi)
      @nocontent = !params['metadata']
      render 'show'
    end
PUT /mnoe/jpi/v1/admin/impac/kpis/:id