Modify Subscriptions

Request to modify information in an existing subscription. Only those fields with values supplied are modified in the subscription object (MtxSubscriberObject). If the extended objects field, Attr, is supplied, it must be of the same type used to create the subscription.

Note: Using the <NotificationPreference> field, you can specify notification preferences in addition to the default 0x0001 (Email) and 0x0002 (Phone) values. The lower 8 bits are reserved for MATRIXX use. The upper 24 bits are available for custom values. The bit field is passed in the NotificationFlags to the notification gateway.

Scheduling Life Cycle Transitions

Use the following modify APIs to schedule when the object status should transition:
  • MtxRequestSubscriberModify
  • MtxRequestGroupModify
  • MtxRequestDeviceModify
  • MtxRequestSubscriptionModify

Set the API field ScheduledStatusTransitionTime to specify an absolute future date and time when the status transition should take place. If you set a status (to transition to) and a ScheduledStatusTransitionTime, the status transition is scheduled. If you do not specify a ScheduledStatusTransitionTime, the status transition occurs immediately. If the new status to transition to is the same as the current status, an error is returned. To cancel an outstanding status transition request, set the IsCancelScheduledRequest field to "true".

The following object query APIs return the subscriber, group, and device object ScheduledStatusTransitionTime and IsCancelScheduledRequest field values, and the MtxPurchasedOffer objects (scheduled requests to suspend or resume).
  • MtxRequestSubscriberQuery
  • MtxRequestGroupQuery
  • MtxRequestDeviceQuery

REST Example

Change the subscriber's first name:
URL
PUT http://host:port/rsgateway/data/v3/subscription/33:44:55:66
Request XML
<MtxRequestSubscriberModify>
    <FirstName>George</FirstName>
</MtxRequestSubscriberModify>
Response
<MtxResponse>
    <RouteId>1</RouteId>
    <Result>0</Result>
    <ResultText>OK</ResultText>
</MtxResponse>