-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathwebhooks_subscriptions.json
More file actions
161 lines (160 loc) · 5.37 KB
/
webhooks_subscriptions.json
File metadata and controls
161 lines (160 loc) · 5.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"apiVersion": "1.0",
"swaggerVersion": "1.2",
"basePath": "https://canvas.instructure.com/api",
"resourcePath": "/webhooks_subscriptions",
"produces": [
"application/json"
],
"apis": [
{
"path": "/lti/subscriptions",
"description": "Creates a webook subscription for the specified event type and\ncontext.",
"operations": [
{
"method": "POST",
"summary": "Create a Webhook Subscription",
"notes": "Creates a webook subscription for the specified event type and\ncontext.",
"nickname": "create_webhook_subscription",
"parameters": [
{
"paramType": "form",
"name": "submission[ContextId]",
"description": "The id of the context for the subscription.",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "subscription[ContextType]",
"description": "The type of context for the subscription. Must be 'assignment',\n'account', or 'course'.",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "subscription[EventTypes]",
"description": "Array of strings representing the event types for\nthe subscription.",
"type": "Array",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "subscription[Format]",
"description": "Format to deliver the live events. Must be 'live-event' or 'caliper'.",
"type": "string",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "subscription[TransportMetadata]",
"description": "An object with a single key: 'Url'. Example: { \"Url\": \"sqs.example\" }",
"type": "Object",
"format": null,
"required": true
},
{
"paramType": "form",
"name": "subscription[TransportType]",
"description": "Must be either 'sqs' or 'https'.",
"type": "string",
"format": null,
"required": true
}
],
"type": "void"
}
]
},
{
"path": "/lti/subscriptions/{id}",
"description": "",
"operations": [
{
"method": "DELETE",
"summary": "Delete a Webhook Subscription",
"notes": "",
"nickname": "delete_webhook_subscription",
"parameters": [
{
"paramType": "path",
"name": "id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "void"
}
]
},
{
"path": "/lti/subscriptions/{id}",
"description": "",
"operations": [
{
"method": "GET",
"summary": "Show a single Webhook Subscription",
"notes": "",
"nickname": "show_single_webhook_subscription",
"parameters": [
{
"paramType": "path",
"name": "id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "void"
}
]
},
{
"path": "/lti/subscriptions/{id}",
"description": "This endpoint uses the same parameters as the create endpoint",
"operations": [
{
"method": "PUT",
"summary": "Update a Webhook Subscription",
"notes": "This endpoint uses the same parameters as the create endpoint",
"nickname": "update_webhook_subscription",
"parameters": [
{
"paramType": "path",
"name": "id",
"description": "ID",
"type": "string",
"format": null,
"required": true
}
],
"type": "void"
}
]
},
{
"path": "/lti/subscriptions",
"description": "This endpoint returns a paginated list with a default limit of 100 items per result set.\nYou can retrieve the next result set by setting a 'StartKey' header in your next request\nwith the value of the 'EndKey' header in the response.\n\nExample use of a 'StartKey' header object:\n { \"Id\":\"71d6dfba-0547-477d-b41d-db8cb528c6d1\",\"DeveloperKey\":\"10000000000001\" }",
"operations": [
{
"method": "GET",
"summary": "List all Webhook Subscription for a tool proxy",
"notes": "This endpoint returns a paginated list with a default limit of 100 items per result set.\nYou can retrieve the next result set by setting a 'StartKey' header in your next request\nwith the value of the 'EndKey' header in the response.\n\nExample use of a 'StartKey' header object:\n { \"Id\":\"71d6dfba-0547-477d-b41d-db8cb528c6d1\",\"DeveloperKey\":\"10000000000001\" }",
"nickname": "list_all_webhook_subscription_for_tool_proxy",
"parameters": [
],
"type": "void"
}
]
}
],
"models": {
}
}