White Papers
41 REST API Guide OpenManage Essentials | Revision A02
2.9.3 AlertSubscription POST example Data
The payload for the POST command is an XML structure that defines the various fields that are needed to
create an Alert Subscription.
Note: All the values in the payload are case sensitive.
Of particular importance are Boolean values such as the <IsEnabled> included in the following example. This
will create an invalid data error when posting.
<RESTSubscription>
<IdDevice>sshiphone4</IdDevice>
<IdSubscriberService>1</IdSubscriberService>
<UserName>SteveHeracleous</UserName>
<IsEnabled>true</IsEnabled>
<AlertFilterId>1006921498</AlertFilterId>
<Token>Token16</Token>
<Description>REST POST subscription creation</Description>
</RESTSubscription>
Note: The field for Id is read-only and its value is only applicable on a GET operation. For the POST
operation, this field is ignored; the recommendation is to set it to 0.
The following screenshot shows the result of executing an AlertSubscription POST command using SoapUI
4.5.0.
Figure 6 Alert subscription