Update the name or output parameters for an existing Subscription.
The id of an existing Subscription.
Example values: 08b923395b6ce8bfa4d96f57f863a1c3
The name you want to assign to the Subscription.
Example values: MyTest
The output parameters are documented individually for each of DataSift's connectors.
Example values: output_params.format=json
All calls to the API must be properly authenticated with a DataSift username and API key.
The push/update endpoint allows you to modify the name or output patameters for an existing Subscription.
You can hit the push/update endpoint any time you want, even when the Subscription that you're changing is running. However, if you change your destination, DataSift will immediately halt delivery to the original destination and begin to deliver to the new destination.
For more details, take a look at the Push API overview.
1. Change the name and output parameters for an existing Subscription:
The new name and output parameters are echoed back in the JSON to confirm that your change is accepted. If an error occurs, DataSift writes it to the message log. Hit the push/log endpoint regularly to check the log.
|id||A unique ID of the newly created Push subscription. Each new subscription has a different ID, even when they are based on the same stream and the data is delivered to the same destination.|
|output_type||The name of the output type. See the list of the values of the output_type parameter elsewhere on this page.|
|name||A user-defined name of the subscription.|
|created_at||A Unix timestamp that represents the date and time when the subscription was created.|
|user_id||An integer ID of the DataSift user who created the subscription.|
|hash||A stream ID or Historics query ID.|
|hash_type||Can be either "hash" (when the hash element represents a stream) or "historics" (when the hash element represents a Historics query).|
|output_params||output_parameters used in the call to /push/create.|
|last_success||The time of the most recent successful delivery. A Unix timestamp. Set to null.|
|last_request||The time of the most recent Push delivery request sent to the associate data destination. A Unix timestamp. Set to null.|
|remaining_bytes||The number of bytes queued for delivery.|
|lost_data||Set to true if data was removed from the Push delivery queue because it could not be delivered.|
|start||Subscription start time/date. A Unix timestamp. Set to null for immediate start.|
|end||Subscription end time. A Unix timestamp. Set to null when interactions should be delivered with no preset end time/date.|