...
Response Code | Headers and Body | |||||
---|---|---|---|---|---|---|
200 (Ok) |
|
...
GET /api/programs/{programId}/eventSubs/{publisherId}
Handy status macro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
...
Response Code | Headers and Body | |||||
---|---|---|---|---|---|---|
200 (Ok) |
|
...
POST /api/programs/{programId}/eventSubs
Handy status macro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Info |
---|
Creates a new Event Subscription. Returns an error if it already exists. Audit fields such as |
JSON Payload
Code Block |
---|
{ "PublisherProgramId": "PublisherId", "SyncEnabled": true, "LbApiPayloadTemplate": { "SyncEnabled"SOME_CATEGORY": { "action": true"import", "LbApiPayloadTemplatelabel": "ACME Course", "... (see docs above) ..." }"importProcessId": {WIQ Process Id}, "batchRowTemplate": "{handlebars template}" } } } |
Responses
Response Code | Headers and Body |
---|---|
201 (Created) | A new Event Subscription was created. No body is returned. HTTP headers:
|
...
Code Block |
---|
{ "LastSyncUtc": "date", "SyncEnabled": true, "LbApiPayloadTemplate": "...{ (see docs above) ..." } } |
Responses
Response Code | Headers and Body |
---|---|
204 (No Content) | Update was performed successfully. No body is returned. |
...