updating the discussion reference with a 'resourceId' attribute