Add a Membership

This call adds one or more subscriptions, groups, or both, to a group. Any groups specified cannot already belong to another group. When a subscription is added to a group, an MtxGroupAddMembershipEvent EDR is generated.

Note: When associating a user specified in the AdminArray, if the user is already associated with the group, the admin role will be added to the relationship. Otherwise, a new association for the user is created with the group and the user will have the admin role.

REST Example

URL
PUT http://host:port/rsgateway/data/v3/group/<GroupOID>/add_members
Request XML
<MtxRequestGroupAddMembership>
    <SubscriberArray>
        <MtxSubscriberSearchData>
            <ExternalId>1234567890</ExternalId>
        </MtxSubscriberSearchData>
        <MtxSubscriberSearchData>
            <ExternalId>9876543210</ExternalId>
        </MtxSubscriberSearchData>
    </SubscriberArray>
</MtxRequestGroupAddMembership>
Response
<MtxResponse>
  <Result>0</Result>
  <ResultText>Member added</ResultText>
</MtxResponse>