|
288 | 288 | },
|
289 | 289 | "consumes": ["application/json"],
|
290 | 290 | "summary": "Subscribe to New Responses being added",
|
291 |
| - "description": "Triggers when a new response is recieved", |
| 291 | + "description": "Triggers when a new response is received", |
292 | 292 | "operationId": "NewResponse",
|
293 | 293 | "x-ms-trigger": "single",
|
294 | 294 | "parameters": [
|
|
307 | 307 | "schema": {
|
308 | 308 | "type": "object",
|
309 | 309 | "properties": {
|
310 |
| - "campaignId": { |
311 |
| - "type": "integer", |
312 |
| - "format": "int32", |
313 |
| - "description": "campaignId", |
314 |
| - "title": "Campaign ID", |
315 |
| - "x-ms-dynamic-values": { |
316 |
| - "operationId": "GetCampaigns", |
317 |
| - "value-path": "id", |
318 |
| - "value-title": "name" |
| 310 | + "Filter": { |
| 311 | + "type": "object", |
| 312 | + "properties": { |
| 313 | + "Include": { |
| 314 | + "type": "object", |
| 315 | + "properties": { |
| 316 | + "campaignId": { |
| 317 | + "type": "integer", |
| 318 | + "format": "int32", |
| 319 | + "description": "campaignId", |
| 320 | + "title": "Campaign ID", |
| 321 | + "x-ms-dynamic-values": { |
| 322 | + "operationId": "GetCampaigns", |
| 323 | + "value-path": "id", |
| 324 | + "value-title": "name" |
| 325 | + } |
| 326 | + } |
| 327 | + } |
| 328 | + } |
319 | 329 | }
|
320 | 330 | },
|
321 |
| - "targetUrl": { |
| 331 | + "Url": { |
322 | 332 | "type": "string",
|
323 | 333 | "description": "targetUrl",
|
324 | 334 | "x-ms-visibility": "internal",
|
325 | 335 | "x-ms-notification-url": true,
|
326 | 336 | "title": ""
|
327 | 337 | },
|
328 |
| - "eventType": { |
| 338 | + "Model": { |
329 | 339 | "type": "string",
|
330 |
| - "description": "eventType", |
| 340 | + "description": "Model", |
331 | 341 | "title": "",
|
332 | 342 | "x-ms-visibility": "internal",
|
333 |
| - "default": "NewResponse" |
| 343 | + "default": "Response" |
334 | 344 | }
|
335 | 345 | },
|
336 | 346 | "required": [
|
337 |
| - "targetUrl", |
338 |
| - "eventType" |
| 347 | + "Url", |
| 348 | + "Model" |
339 | 349 | ]
|
340 | 350 | }
|
341 | 351 | }
|
|
472 | 482 | "schema": {
|
473 | 483 | "type": "object",
|
474 | 484 | "properties": {
|
475 |
| - "campaignId": { |
476 |
| - "type": "integer", |
477 |
| - "format": "int32", |
478 |
| - "description": "The campaign you wish to subscribe the trigger to", |
479 |
| - "title": "Campaign ID", |
480 |
| - "x-ms-dynamic-values": { |
481 |
| - "operationId": "GetCampaigns", |
482 |
| - "value-path": "id", |
483 |
| - "value-title": "name" |
| 485 | + "Filter": { |
| 486 | + "type": "object", |
| 487 | + "properties": { |
| 488 | + "Include": { |
| 489 | + "type": "object", |
| 490 | + "properties": { |
| 491 | + "campaignId": { |
| 492 | + "type": "integer", |
| 493 | + "format": "int32", |
| 494 | + "description": "campaignId", |
| 495 | + "title": "Campaign ID", |
| 496 | + "x-ms-dynamic-values": { |
| 497 | + "operationId": "GetCampaigns", |
| 498 | + "value-path": "id", |
| 499 | + "value-title": "name" |
| 500 | + } |
| 501 | + } |
| 502 | + } |
| 503 | + } |
484 | 504 | }
|
485 | 505 | },
|
486 |
| - "targetUrl": { |
| 506 | + "Url": { |
487 | 507 | "type": "string",
|
488 |
| - "description": "The value used for the return url", |
489 |
| - "x-ms-notification-url": true, |
| 508 | + "description": "targetUrl", |
490 | 509 | "x-ms-visibility": "internal",
|
| 510 | + "x-ms-notification-url": true, |
491 | 511 | "title": ""
|
492 | 512 | },
|
493 |
| - "eventType": { |
| 513 | + "Model": { |
494 | 514 | "type": "string",
|
495 |
| - "description": "The type of event associated with the trigger", |
| 515 | + "description": "Model", |
496 | 516 | "title": "",
|
497 | 517 | "x-ms-visibility": "internal",
|
498 |
| - "default": "NewCampaignMember" |
| 518 | + "default": "CampaignMember" |
499 | 519 | }
|
500 | 520 | },
|
501 | 521 | "required": [
|
502 |
| - "eventType", |
503 |
| - "targetUrl" |
| 522 | + "Url", |
| 523 | + "Model" |
504 | 524 | ]
|
505 | 525 | }
|
506 | 526 | }
|
|
0 commit comments