Currently customer segments should be mapped manually. I want to assign my customer segment using an external logic with an API call.