Develop > Application Programming Interface > Legacy APIs > User API > Delete multiple subscriptions

Delete multiple subscriptions

Details

URI /user/multipleSubscription/delete
Method POST
Parameters

userIdentifier=<user_id>
    Required; the user ID you want to use as credentials for this API call. See Get userIdentifier for the steps required to get the userIdentifier value.

Returns 200 - Ok (Indicates the REST call executed without error. See XML return content for whether all specified subscriptions were deleted.) 
401 - Not authorized
404 - Object not found
500 - Server exception

Example

Use the following URL:

https://<host>:<port>/csa/rest/user/multipleSubscription/delete ?userIdentifier=90d965c0379fd06601379fd192b30ee6  

The following XML was sent in the request:


<ServiceSubscriptionList>
    <ServiceSubscription>
        <id>90e72e283b05aff1013b0b2c015103a4</id>
        <catalogItem>
		<id>90cef5de3c63429f013c6489245b09a2</id>
            <catalog>
                <id>90d965c0379fd06601379fd1936a0f05</id>
            </catalog>
        </catalogItem>
    </ServiceSubscription>
    <ServiceSubscription>
        <id>90e72e283b05aff1013b0b2b43fc0356</id>
        <catalogItem>
      <id>90cef5de3c63429f013c648924bf09b4</id>
            <catalog>
                <id>90d965c0379fd06601379fd1936a0f05</id>
            </catalog>
        </catalogItem>
    </ServiceSubscription>
</ServiceSubscriptionList>

The following XML was returned. count indicates the number of subscriptions successfully deleted. A ServiceSubscription element is included for each deleted subscription.

To make this example more informative, note in the following return information that the first subscription is not deleted. A subscription will not be deleted during this call if the subscription was already deleted, it is not in the canceled state, permission is denied, or there is an authorization failure


<ServiceSubscriptionList>
    <count>1</count>
    <limit>0</limit>
    <ServiceSubscription>
        <id>90e72e283b05aff1013b0b2b43fc0356</id>
  <isCriticalSystemObject>false</isCriticalSystemObject>
  <disabled>false</disabled>
</ServiceSubscription>
</ServiceSubscriptionList>