public static MozuClient addSegmentAccountsClient(List<Integer> accountIds, Integer id) throws Exception
	{
		MozuUrl url = com.mozu.api.urls.commerce.customer.CustomerSegmentUrl.addSegmentAccountsUrl(id);
		String verb = "POST";
				MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance();
		mozuClient.setVerb(verb);
		mozuClient.setResourceUrl(url);
		mozuClient.setBody(accountIds);
		return mozuClient;

	}
public static MozuClient addSegmentAccountsClient ( List < Integer > accountIds , Integer id ) throws Exception { MozuUrl url = com . mozu . api . urls . commerce . customer . CustomerSegmentUrl . addSegmentAccountsUrl ( id ) ; String verb = "POST" ; MozuClient mozuClient = ( MozuClient ) MozuClientFactory . getInstance ( ) ; mozuClient . setVerb ( verb ) ; mozuClient . setResourceUrl ( url ) ; mozuClient . setBody ( accountIds ) ; return mozuClient ; }
<p><pre><code>
MozuClient mozuClient=AddSegmentAccountsClient( accountIds,  id);
client.setBaseAddress(url);
client.executeRequest();
</code></pre></p>
@param id Unique identifier of the customer segment to retrieve.
@param accountIds List of customer account IDs to add to the customer segment specified in the request.
@return Mozu.Api.MozuClient
@see int