Update need_ids when need_id is sent through API

this is mainly for backwards compatibility till
everyone updates to the latest api adapters.