How do I add recipients in the list via API?
I tried using RegisterGroup function present in the nms:recipient to add a recipient to an existing list. The response is 200 OK but when I look at the adobe campaign console, the list is not updated with the recipient. This is the code that I am using:
<?xml version='1.0' encoding='ISO-8859-1'?>
<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' xmlns:urn='urn:xtk:session'>
<soapenv:Header/>
<soapenv:Body>
<urn:RegisterGroup>
<urn:sessiontoken>___e3cf1125-82b4-49f4-9083-04bd1945c6d1</urn:sessiontoken>
<entityList><key value="5402862"/>
<where>
<condition enabledIf="" expr="@id = 5402862"/>
</where>
</entityList>
<choiceList><key value="873730"/>
<where>
<condition enabledIf="" expr="@id = 873730"/>
</where>
</choiceList>
<bRegister>true</bRegister>
</urn:RegisterGroup>
</soapenv:Body>
</soapenv:Envelope>
This is the response I got from API:
<?xml version='1.0'?>
<SOAP-ENV:Envelope xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns='urn:nms:recipient' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP-ENV:Body>
<RegisterGroupResponse xmlns='urn:nms:recipient' SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'></RegisterGroupResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The goal is to add recipients to the list dynamically via API.