Run Publication Subscription REST API to run a specific publication or a specific subscription. You can run the publication or the subscription regardless of its mode, that is, you can run both enabled and disabled publications and subscriptions.
You can use the Run Publication Subscription REST API to publish data and subscribe to data with publications and subscriptions that trigger a Data Integration task. You cannot use the API to publish data and subscribe to data with data-driven publications and subscriptions.
The Run Publication Subscription API returns the response code of the action that you perform. If the publication or subscription runs successfully, the API returns the event ID of the publication or the subscription event that
Data Integration Hub
generates. You can run the
Data Integration Hub
Event Status API to query the status of the publication or subscription event.
To run a publication or a subscription from the API, you must use a
Data Integration Hub
user with permissions and privileges for the publication or for the subscription that you want to run. For more information, see the
Data Integration Hub
Administrator Guide
.
Sample Files
The
<DIH_InstallationDir>\samples\rest_api_samples
folder contains sample client applications and a readme file that describes the applications.