Skip to content

Commit 56bc929

Browse files
Updating POST body for webhook requests (microsoft#2601)
Co-authored-by: Vagner Gon <[email protected]>
1 parent 94e4fee commit 56bc929

File tree

1 file changed

+53
-33
lines changed

1 file changed

+53
-33
lines changed

certified-connectors/nps.today/apiDefinition.swagger.json

+53-33
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
},
289289
"consumes": ["application/json"],
290290
"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",
292292
"operationId": "NewResponse",
293293
"x-ms-trigger": "single",
294294
"parameters": [
@@ -307,35 +307,45 @@
307307
"schema": {
308308
"type": "object",
309309
"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+
}
319329
}
320330
},
321-
"targetUrl": {
331+
"Url": {
322332
"type": "string",
323333
"description": "targetUrl",
324334
"x-ms-visibility": "internal",
325335
"x-ms-notification-url": true,
326336
"title": ""
327337
},
328-
"eventType": {
338+
"Model": {
329339
"type": "string",
330-
"description": "eventType",
340+
"description": "Model",
331341
"title": "",
332342
"x-ms-visibility": "internal",
333-
"default": "NewResponse"
343+
"default": "Response"
334344
}
335345
},
336346
"required": [
337-
"targetUrl",
338-
"eventType"
347+
"Url",
348+
"Model"
339349
]
340350
}
341351
}
@@ -472,35 +482,45 @@
472482
"schema": {
473483
"type": "object",
474484
"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+
}
484504
}
485505
},
486-
"targetUrl": {
506+
"Url": {
487507
"type": "string",
488-
"description": "The value used for the return url",
489-
"x-ms-notification-url": true,
508+
"description": "targetUrl",
490509
"x-ms-visibility": "internal",
510+
"x-ms-notification-url": true,
491511
"title": ""
492512
},
493-
"eventType": {
513+
"Model": {
494514
"type": "string",
495-
"description": "The type of event associated with the trigger",
515+
"description": "Model",
496516
"title": "",
497517
"x-ms-visibility": "internal",
498-
"default": "NewCampaignMember"
518+
"default": "CampaignMember"
499519
}
500520
},
501521
"required": [
502-
"eventType",
503-
"targetUrl"
522+
"Url",
523+
"Model"
504524
]
505525
}
506526
}

0 commit comments

Comments
 (0)