editObject


SoftLayer_Notification_User_Subscriber_Billing::editObject

Edit a notification subscriber active status

Description

The subscriber’s subscription status can be “turned off” or “turned on” if the subscription is not required.

Subscriber preferences may also be edited. To edit the preferences, you must pass in the id off the preferences to edit. Here is an example of structure to pass in. In this example, the structure will set the subscriber status to active and the threshold preference to 90 and the limit preference to 20

*id = 1111 *active = 1 *preferences[1] **id = 11 **value = 90 *preference[2] **id = 12 **value = 20


Parameters

Name Type Description
templateObject SoftLayer_Notification_User_Subscriber A skeleton SoftLayer_Notification_User_Subscriber object with only the properties defined that you wish to change. Unchanged properties are left alone.

Required Headers

Optional Headers

  • None

Return Values

  • boolean
curl -g -u $SL_USER:$SL_APIKEY -X POST -d '{"parameters": [SoftLayer_Notification_User_Subscriber]}' \
'https://api.softlayer.com/rest/v3.1/SoftLayer_Notification_User_Subscriber_Billing/{SoftLayer_Notification_User_Subscriber_BillingID}/editObject'