call API to save agents selection