This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
/
sample-queries.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 144 should actually have 9 columns, instead of 8 in line 143.
624 lines (623 loc) · 51 KB
/
sample-queries.csv
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
Category Name,Type of Query,Query title (max length: 64 chars),Query URL,Tip (something we'll expose in the UI when a user makes a particular request),Doc Link,AAD or MSA,Post template,Headers
Getting Started,GET,my profile,/v1.0/me/,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/users,BOTH,,
Getting Started,GET,my photo,/v1.0/me/photo/$value,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/profilephoto_get,BOTH,,
Getting Started,GET,my mail,/v1.0/me/messages,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_messages,BOTH,,
Getting Started,GET,all the items in my drive,/v1.0/me/drive/root/children,,https://docs.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0,BOTH,,
Getting Started,GET,items trending around me,/beta/me/insights/trending,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/insights_list_trending,AAD,,
Getting Started,GET,my manager,/v1.0/me/manager,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_manager,AAD,,
Users,GET,my direct reports,/v1.0/me/directReports,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_directreports,AAD,,
Users,GET,all users in the organization,/v1.0/users,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/users,AAD,,
Users,GET,all users in the Finance department,/v1.0/users?$filter=Department eq 'Finance',,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/users,AAD,,
Users,GET,my skills,"/v1.0/me/?$select=displayName,skills",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user,AAD,,
Users,GET,user by email,/v1.0/users/{user-mail},,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user,AAD,,
Users,GET,all my Planner tasks,/beta/me/planner/tasks,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/planner_overview,AAD,,
Users,POST,create user,/v1.0/users,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_users,AAD,"{
""accountEnabled"": true,
""city"": ""Seattle"",
""country"": ""United States"",
""department"": ""Sales & Marketing"",
""displayName"": ""Melissa Darrow"",
""givenName"": ""Melissa"",
""jobTitle"": ""Marketing Director"",
""mailNickname"": ""MelissaD"",
""passwordPolicies"": ""DisablePasswordExpiration"",
""passwordProfile"": {
""password"": ""{Placeholder Password}"",
""forceChangePasswordNextSignIn"": false
},
""officeLocation"": ""131/1105"",
""postalCode"": ""98052"",
""preferredLanguage"": ""en-US"",
""state"": ""WA"",
""streetAddress"": ""9256 Towne Center Dr., Suite 400"",
""surname"": ""Darrow"",
""mobilePhone"": ""+1 206 555 0110"",
""usageLocation"": ""US"",
""userPrincipalName"": ""MelissaD@{domain}""
}",Content-type: application/json
Users,GET,track user changes,"/v1.0/users/delta?$select=displayName,givenName,surname",,https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_users,AAD,,
Groups,GET,all groups in my organization,/v1.0/groups,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/group,AAD,,
Groups,GET,all groups I belong to,/v1.0/me/memberOf,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_memberof,AAD,,
,,,,,,,,
Groups,GET,group members,/v1.0/groups/{group-id}/members,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_list_members,AAD,,
Groups,GET,group's conversations,/v1.0/groups/{group-id}/conversations,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_list_conversations,AAD,,
Groups,GET,group's events,/v1.0/groups/{group-id}/events,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_list_events,AAD,,
Groups,POST,add favorite group,/v1.0/groups/{group-id}/addFavorite,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_addfavorite,AAD,,Content-type: application/json
Groups,GET,items in a group drive,/v1.0/groups/{group-id}/drive/root/children,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/drive_get,AAD,,
Groups,GET,track group changes,"/v1.0/groups/delta?$select=displayName,description",,https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_groups,AAD,,
Outlook Mail,GET,my high important mail,/v1.0/me/messages?$filter=importance eq 'high',,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_messages,BOTH,,
Outlook Mail,GET,my mails from an address,/v1.0/me/messages?$filter=(from/emailAddress/address) eq '{user-mail}',,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_messages,BOTH,,
Outlook Mail,GET,my mail that has 'Hello World',"/v1.0/me/messages?$search=""hello world""",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_messages,BOTH,,
Outlook Mail,POST,send an email,/v1.0/me/sendMail,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_sendmail,BOTH,"{
""message"": {
""subject"": ""Meet for lunch?"",
""body"": {
""contentType"": ""Text"",
""content"": ""The new cafeteria is open.""
},
""toRecipients"": [
{
""emailAddress"": {
""address"": ""[email protected]""
}
}
]
}}",Content-type: application/json
Outlook Mail,POST,forward mail,/v1.0/me/messages/{message-id}/forward,"This query requires a message id. To get the ID, run the following query, find the message in the response and use its ID property: GET https://graph.microsoft.com/v1.0/me/messages",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/message_forward,BOTH,"{
""comment"": ""FYI"",
""toRecipients"": [
{
""emailAddress"": {
""address"": ""{user-mail}"",
""name"": ""Alex Darrow""
}
}
]
}",Content-type: application/json
Outlook Mail,GET,track email changes,/v1.0/me/mailFolders/Inbox/messages/delta,,https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_messages,AAD,,
Outlook Mail (beta),GET,email I'm @ mentioned,"/beta/me/messages?$filter=mentionsPreview/isMentioned eq true&$select=subject,sender,receivedDateTime",,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_list_messages#request-2,AAD,,
Outlook Calendar,GET,my events for the next week,/v1.0/me/calendarview?startdatetime={today}&enddatetime={next-week},,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_calendarview,BOTH,,
Outlook Calendar,GET,all events in my calendar,"/v1.0/me/events?$select=subject,body,bodyPreview,organizer,attendees,start,end,location",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_events,BOTH,,
Outlook Calendar,GET,all my calendars,/v1.0/me/calendars,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_calendars,BOTH,,
,,,,,,,,
Outlook Calendar,POST,find meeting time,/v1.0/me/findMeetingTimes,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_findmeetingtimes,AAD,"{
""attendees"": [
{
""emailAddress"": {
""address"": ""{user-mail}"",
""name"": ""Alex Darrow""
},
""type"": ""Required""
}
],
""timeConstraint"": {
""timeslots"": [
{
""start"": {
""dateTime"": ""{today}"",
""timeZone"": ""Pacific Standard Time""
},
""end"": {
""dateTime"": ""{next-week}"",
""timeZone"": ""Pacific Standard Time""
}
}
]
},
""locationConstraint"": {
""isRequired"": ""false"",
""suggestLocation"": ""true"",
""locations"": [
{
""displayName"": ""Conf Room 32/1368"",
""locationEmailAddress"": ""[email protected]""
}
]
},
""meetingDuration"": ""PT1H""
}",Content-type: application/json
Outlook Calendar,POST,schedule a meeting,/v1.0/me/events,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_events,BOTH,"{
""subject"": ""My event"",
""start"": {
""dateTime"": ""{today}"",
""timeZone"": ""UTC""
},
""end"": {
""dateTime"": ""{next-week}"",
""timeZone"": ""UTC""
}
}",Content-type: application/json
Outlook Calendar,POST,add graph community call,/v1.0/me/events,Creates the monthly Microsoft Graph community call on your calendar.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_events,BOTH,"{
""subject"": ""Microsoft Graph Community call"",
""body"": {
""contentType"": ""HTML"",
""content"": ""Call link: https://aka.ms/mmkv1b Submit a question: https://aka.ms/ybuw2i""
},
""start"": {
""dateTime"": ""2018-09-04T08:00:00"",
""timeZone"": ""Pacific Standard Time""
},
""end"": {
""dateTime"": ""2018-09-04T09:00:00"",
""timeZone"": ""Pacific Standard Time""
},
""location"":{
""displayName"":""Skype for Business""
},
""recurrence"": {
""pattern"": {
""type"": ""relativeMonthly"",
""interval"": 1,
""daysOfWeek"": [ ""Tuesday"" ],
""index"": ""first""
},
""range"": {
""type"": ""noEnd"",
""startDate"": ""2017-08-29""
}
}
}",Content-type: application/json
Outlook Calendar,GET,track changes on my events for the next week,/v1.0/me/calendarView/delta?startDateTime={today}&endDateTime={next-week},"This query uses date and time parameters. Use an ISO 8601 format. For example, ""2017-04-30T19:00:00.0000000"".",https://developer.microsoft.com/en-us/graph/docs/concepts/delta_query_events,BOTH,,
Personal Contacts,GET,my contacts,/v1.0/me/contacts,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_contacts,BOTH,,
Personal Contacts,POST,add contact,/v1.0/me/contacts,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_contacts,BOTH,"{
""givenName"": ""Pavel"",
""surname"": ""Bansky"",
""emailAddresses"": [
{
""address"": ""[email protected]"",
""name"": ""Pavel Bansky""
}
],
""businessPhones"": [
""+1 732 555 0102""
]
}",Content-type: application/json
OneDrive,GET,all the items in my drive,/v1.0/me/drive/root/children,,https://docs.microsoft.com/en-us/graph/api/driveitem-list-children?view=graph-rest-1.0,BOTH,,
OneDrive,GET,my recent files,/v1.0/me/drive/recent,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/drive_recent,BOTH,,
OneDrive,GET,files shared with me,/v1.0/me/drive/sharedWithMe,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/drive_sharedwithme,BOTH,,
OneDrive,GET,search my OneDrive,"/v1.0/me/drive/root/search(q='finance')?select=name,id,webUrl",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/item_search,BOTH,,
OneDrive,POST,create a folder,/v1.0/me/drive/root/children,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/item_post_children,BOTH,"{
""name"": ""New Folder"",
""folder"": { }
}",Content-type: application/json
Excel,POST,create session,/v1.0/me/drive/items/{drive-item-id}/workbook/createSession,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/excel,AAD,"{ ""persistChanges"": true }",Content-type: application/json
Excel,GET,worksheets in a workbook,/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/workbook_list_worksheets,AAD,,
Excel,POST,add a new worksheet,/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets/,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheetcollection_add,AAD,"{
""name"": ""My New Sheet""
}",Content-type: application/json
Excel,POST,calculate loan payment,/v1.0/me/drive/items/{drive-item-id}/workbook/functions/pmt,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/workbook#functions,AAD,"{
""rate"": 0.035,
""nper"": 20,
""pv"": -2000
}",Content-type: application/json
Excel,GET,used range in worksheet,/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets('Sheet1')/usedRange,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheet_usedrange,AAD,,
Excel,GET,tables in worksheet,/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets/Sheet1/tables,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheet_list_tables,AAD,,
Excel,GET,charts in worksheet,/v1.0/me/drive/items/{drive-item-id}/workbook/worksheets('Sheet1')/charts,"This query requires a driveItem id. To find the ID of the driveItem that corresponds to an Excel Workbook, you can run: GET https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')?select=name,id,webUrl.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/worksheet_list_charts,AAD,,
Planner,GET,all Planner plans associated with a group,/v1.0/groups/{group-id-with-plan}/planner/plans,"This query requires a group id. To find the ID of a group you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/memberOf",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannergroup_list_plans,AAD,,
Planner,GET,Planner plan,/v1.0/planner/plans/{plan-id},This query requires a plan id. To find the ID of the plan you can run: GET https://graph.microsoft.com/v1.0/me/groups/{group-id}/plans.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerplan_get,AAD,,
Planner,PATCH,update a Planner plan,/v1.0/planner/plans/{plan-id},"This query requires a Plan ID and value of @odata.etag for a selected task. To find the ID of the Plan, you can run: GET https://graph.microsoft.com/v1.0/me/planner/tasks. To get the @odata.etag, run: GET https://graph.microsoft.com/v1.0/planner/plans/{plan-id}",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerplan_update,AAD,"{
""title"": ""Updated plan title""
}",If-Match: {if-match}
Planner,GET,all buckets in Planner plan,/v1.0/planner/plans/{plan-id}/buckets,This query requires a plan id. To find the ID of the plan you can run: GET https://graph.microsoft.com/v1.0/me/groups/{group-id}/plans.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerplan_list_buckets,AAD,,
Planner,POST,create a bucket in Planner plan,/v1.0/planner/buckets,This query requires a Plan id. To find the ID of the Plan you can run: GET https://graph.microsoft.com/v1.0/me/planner/plans,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/planner_post_buckets,AAD,"{
""name"": ""{bucket-name}"",
""planId"": ""{plan-id}"",
""orderHint"": "" !""
}",Content-type: application/json
Planner,PATCH,update a bucket in Planner plan,/v1.0/planner/buckets/{bucket-id},This query requires a bucket id and value of @odata.etag for a selected bucket. To find the ID of the bucket run: GET https://graph.microsoft.com/v1.0/planner/plans/{plan-id}/buckets and then run: GET https://graph.microsoft.com/v1.0/planner/buckets/{bucket-id} to discover @odata.etag,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerbucket_update,AAD,"{
""name"": ""Updated bucket name""
}",If-Match: {if-match}
Planner,GET,all Planner tasks for a plan,/v1.0/planner/plans/{plan-id}/tasks,This query requires a plan id. To find the ID of the plan you can run: GET https://graph.microsoft.com/v1.0/me/groups/{group-id}/plans.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannerplan_list_tasks,AAD,,
Planner,GET,all my Planner tasks,/v1.0/me/planner/tasks,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/planner_overview,AAD,,
Planner,GET,all Planner tasks for user,/v1.0/users/{coworker-mail}/planner/tasks,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/planneruser_list_tasks,AAD,,
Planner,GET,Planner task by id,/v1.0/planner/tasks/{task-id},This query requires a task id. To find the ID of the task you can run: GET https://graph.microsoft.com/v1.0/me/planner/tasks,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannertask_get,AAD,,
Planner,POST,create a Planner task,/v1.0/planner/tasks,This query requires a Plan id. To find the ID of the Plan you can run: GET https://graph.microsoft.com/v1.0/me/planner/tasks,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/planner_post_tasks,AAD,"{
""planId"": ""{plan-id}"",
""title"": ""{task-title}"",
""assignments"": {}
}",Content-type: application/json
Planner,PATCH,update a Planner task,/v1.0/planner/tasks/{task-id},This query requires a task id and value of @odata.etag for a selected task. To find the ID of the task and @odata.etag you can run: GET https://graph.microsoft.com/v1.0/me/planner/tasks,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannertask_update,AAD,"{
""title"": ""Updated task title""
}",If-Match: {if-match}
Planner,GET,details for Planner task,/v1.0/planner/tasks/{task-id}/details,This query requires a task id. To find the ID of the task you can run: GET https://graph.microsoft.com/v1.0/me/planner/tasks,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/plannertaskdetails_get,AAD,,
Insights,GET,my recent files,/v1.0/me/drive/recent,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/drive_recent,BOTH,,
Insights (beta),GET,items trending around me,/beta/me/insights/trending,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/insights_list_trending,AAD,,
Insights (beta),GET,items shared with me,/beta/me/insights/shared,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/insights_list_shared,AAD,,
Insights (beta),GET,items viewed and modified by me,/beta/me/insights/used,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/insights_list_used,AAD,,
People,GET,people I work with,/v1.0/me/people,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_people,BOTH,,
People,GET,people whose name starts with J,/v1.0/me/people/?$search=j,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/person_get,BOTH,,
People,GET,people relevant to a topic,"/v1.0/me/people/?$search=""topic: contoso""",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/person_get,BOTH,,
,,,,,,,,
,,,,,,,,
Extensions,GET,get an open extension,"/v1.0/me?$select=id,displayName,mail,mobilePhone&$expand=extensions",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/opentypeextension,AAD,,
Extensions,POST,create an open extension,/v1.0/me/extensions,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/opentypeextension_post_opentypeextension,AAD,"{
""@odata.type"":""microsoft.graph.openTypeExtension"", ""extensionName"":""com.contoso.roamingSettings"",
""theme"":""dark"",
""color"":""purple"",
""lang"":""Japanese""
}",Content-type: application/json
Extensions,PATCH,update an open extension,/v1.0/me/extensions/{extension-id},,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/opentypeextension_update,AAD,"{
""theme"":""light"",
""color"":""yellow"",
""lang"":""Swahili""
}",
Extensions,GET,get available schema extensions,/v1.0/schemaExtensions,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/schemaextension_post_schemaextensions,AAD,,
Extensions,GET,filter groups by extension property value,"/v1.0/groups?$filter=adatumisv_courses/id eq '123'&$select=id,displayName,adatumisv_courses",,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/schemaextension_post_schemaextensions,AAD,,
Extensions,POST,create a group with extension data,/v1.0/groups,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/schemaextension_post_schemaextensions,AAD,"{
""displayName"": ""Extensions sample group"",
""description"": ""Extensions sample group"",
""groupTypes"": [""Unified""],
""mailEnabled"": true,
""mailNickname"": ""extSample123"",
""securityEnabled"": false,
""adatumisv_courses"": {
""id"":""123"",
""name"":""New Managers"",
""type"":""Online""
}
}",
Extensions,PATCH,update a group with extension data,/v1.0/groups/{group-id},,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/schemaextension_post_schemaextensions,AAD,"{
""adatumisv_courses"": {
""id"":""123"",
""name"":""New Managers"",
""type"":""Online""
}
}",
OneNote,GET,my notebooks,/v1.0/me/onenote/notebooks,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/onenote,BOTH,,
OneNote,GET,my sections,/v1.0/me/onenote/sections,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/section,BOTH,,
OneNote,GET,my pages,/v1.0/me/onenote/pages,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/section_list_pages,BOTH,,
OneNote,POST,create notebook,/v1.0/me/onenote/notebooks,Update the Request Body and select Run Query.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/onenote_post_notebooks,BOTH,"{
""displayName"": ""My Notebook""
}",
OneNote,POST,create section,/v1.0/me/onenote/notebooks/{notebook-id}/sections,"This query requires a notebook id. To find the ID, you can run: GET https://graph.microsoft.com/v1.0/me/onenote/notebooks. ",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/notebook_post_sections,BOTH,"{
""displayName"": ""Section 1""
}",Content-type: application/json
OneNote,POST,create page,/v1.0/me/onenote/sections/{section-id}/pages,"This query requires a section id. To find the ID, you can run: GET https://graph.microsoft.com/v1.0/me/onenote/sections.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/section_post_pages,BOTH,"
<!DOCTYPE html>
<html>
<head>
<title>A page with a block of HTML</title>
</head>
<body>
<p>This page contains some <i>formatted</i> <b>text</b>.</p>
</body>
</html>",Content-type: application/xhtml+xml
SharePoint Sites,GET,my organization's default SharePoint site,/v1.0/sites/root,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_get,AAD,,
SharePoint Sites,GET,Enumerate the document libraries under the root site,/v1.0/sites/root/drives,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/drive_list#list-a-sites-drives,AAD,,
SharePoint Sites,GET,SharePoint site based on relative path of the site,/v1.0/sites/{host-name}:/{server-relative-path},,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_getbypath,AAD,,
SharePoint Sites,GET,Search for a SharePoint site by keyword,/v1.0/sites?search=contoso,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_search,AAD,,
SharePoint Sites,GET,Enumerate subsites of the root site,/v1.0/sites/root/sites,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_list_subsites,AAD,,
SharePoint Sites,GET,Enumerate site columns of the root site,/v1.0/sites/root/columns,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_list_columns,AAD,,
SharePoint Sites,GET,Enumerate site content types of the root site,/v1.0/sites/root/contentTypes,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/site_list_contenttypes,AAD,,
SharePoint Lists,GET,Enumerate the lists in the root site,/v1.0/sites/root/lists,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/list_list,AAD,,
SharePoint Lists,GET,Enumerate list columns,/v1.0/sites/root/lists/{list-id}/columns,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/list_list_columns,AAD,,
SharePoint Lists,GET,Enumerate list content types,/v1.0/sites/root/lists/{list-id}/contentTypes,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/list_list_contenttypes,AAD,,
SharePoint Lists,GET,Enumerate the list items in a list,/v1.0/sites/root/lists/{list-id}/items,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/listitem_list,AAD,,
SharePoint Lists,GET,Enumerate list items with specific column values,/v1.0/sites/root/lists/{list-id}/items?$filter=fields/Title eq '{list-title}',,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/listitem_list,AAD,,Prefer: allowthrottleablequeries
Batching,POST,Perform parallel GETs,/v1.0/$batch,"This query shows you how to use batching to get your user information, your messages, and your events.",https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching,AAD,"{""requests"" : [{""url"" : ""/me?$select=displayName,jobTitle,userPrincipalName"", ""method"" : ""GET"", ""id"" : ""1""}, {""url"" : ""/me/messages?$filter=importance eq 'high'&$select=from,subject,receivedDateTime,bodyPreview"", ""method"" : ""GET"", ""id"" : ""2""}, {""url"" : ""/me/events"", ""method"" : ""GET"", ""id"" : ""3""}] }",Content-type: application/json
Batching,POST,Combine a POST and a GET,/v1.0/$batch,This query will create a folder called TestBatchingFolder in your OneDrive and return it back to you via a GET.,https://developer.microsoft.com/en-us/graph/docs/concepts/json_batching,AAD,"{
""requests"": [{
""url"": ""/me/drive/root/children"",
""method"": ""POST"",
""id"": ""1"",
""body"": {
""name"": ""TestBatchingFolder"",
""folder"": {}
},
""headers"": {
""Content-Type"": ""application/json""
}
}, {
""url"": ""/me/drive/root/children/TestBatchingFolder "",
""method"": ""GET"",
""id"": ""2"",
""DependsOn"": [""1""]
}
]
} ",Content-type: application/json
,,,,,,,,
Microsoft Teams,GET,my joined teams,/v1.0/me/joinedTeams,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_list_joinedteams,,,
Microsoft Teams,GET,members of a team,/v1.0/groups/{group-id-for-teams}/members,"This query requires a group id of the Team. To find the group id of teams you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/joinedTeams",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/group_list_memberof,,,
Microsoft Teams,GET,channels of a team which I am member of,/v1.0/teams/{team-id}/channels,"This query requires a team id. To find the team id of teams you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/joinedTeams",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/channel_list,,,
Microsoft Teams,GET,channel info,/v1.0/teams/{team-id}/channels/{channel-id},"This query requires a team id and a channel id from that team. To find the team id & channel id, you can run: 1) GET https://graph.microsoft.com/v1.0/me/joinedTeams 2) GET https://graph.microsoft.com/v1.0/teams/{team-id}/channels",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/channel_get,,,
Microsoft Teams,POST,create channel,/v1.0/teams/{team-id}/channels,"This query requires a team id. To find the team id of teams you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/joinedTeams.",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/channel_post,,"{
""displayName"": ""Architecture Discussion"",
""description"": ""This channel is where we debate all future architecture plans""
}",
Microsoft Teams,GET,apps in a team,/v1.0/teams/{team-id}/installedApps?$expand=teamsAppDefinition,"This query requires a team id. To find the team id, you can run: GET https://graph.microsoft.com/v1.0/me/joinedTeams",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/teamsappinstallation_list,,,
Microsoft Teams,GET,tabs in a channel,/v1.0/teams/{team-id}/channels/{channel-id}/tabs?$expand=teamsApp,"This query requires a team id and a channel id from that team. To find the team id & channel id, you can run: 1) GET https://graph.microsoft.com/v1.0/me/joinedTeams 2) GET https://graph.microsoft.com/v1.0/teams/{team-id}/channels",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/teamstab_list,,,
Microsoft Teams,GET,items in a team drive,/v1.0/groups/{group-id-for-teams}/drive/root/children,"This query requires a group id of the Team. To find the group id of Teams you belong to, you can run: GET https://graph.microsoft.com/v1.0/me/joinedTeams",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/item_list_children,,,
Microsoft Teams (beta),GET,messages (without replies) in a channel,/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages,"This query requires a group id of the Team and channel id of the corresponding channel of that Team. To find the group id & channel id, you can run: 1) GET https://graph.microsoft.com/beta/me/joinedTeams 2) GET https://graph.microsoft.com/beta/groups/{group-id-for-teams}/channels",https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_list_messages,,,
Microsoft Teams (beta),GET,message in a channel,/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id},"This query requires a group id of the Team, channel id of the corresponding channel of that Team and message id of the message you want to retrieve. To find the group id, channel id and message-id you can run: 1) GET https://graph.microsoft.com/beta/me/joinedTeams 2) GET https://graph.microsoft.com/beta/groups/{group-id-for-teams}/channels 3) GET https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages",https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_get_message,,,
Microsoft Teams (beta),GET,replies to a message in channel,/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id}/replies,"This query requires a group id of the Team, channel id of the corresponding channel of that Team and message id of the message of which you need the replies. To find the group id, channel id and message-id you can run: 1) GET https://graph.microsoft.com/beta/me/joinedTeams 2) GET https://graph.microsoft.com/beta/groups/{group-id-for-teams}/channels 3) GET https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages",https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_list_messagereplies,,,
Microsoft Teams (beta),GET,reply of a message,/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id}/replies/{reply-id},"This query requires a group id of the Team, channel id of the corresponding channel of that Team, message id of the message of which you need the reply and the id of the specific reply. To find the group id, channel id, message-id and reply-id you can run: 1) GET https://graph.microsoft.com/beta/me/joinedTeams 2) GET https://graph.microsoft.com/beta/groups/{group-id-for-teams}/channels 3) GET https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages 4) GET https://graph.microsoft.com/beta/teams/{group-id-for-teams}/channels/{channel-id}/messages/{message-id}/replies",https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_get_messagereply,,,
Microsoft Teams (beta),POST,create chat thread,/beta/teams/{team-id}/channels/{channel-id}/chatThreads,"This query requires a team id and a channel id from that team. To find the team id & channel id, you can run: 1) GET https://graph.microsoft.com/beta/me/joinedTeams 2) GET https://graph.microsoft.com/beta/teams/{team-id}/channels",https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/channel_post_chatthreads,,"{
""rootMessage"": {
""body"": {
""contentType"": 2,
""content"": ""Hello world""
}
}
}",
Outlook Mail,GET,my inbox rules,/beta/me/mailFolders/inbox/messagerules,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/messagerule,BOTH,,
Outlook Mail,GET,my outlook categories,/beta/me/outlook/masterCategories,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlookuser_list_mastercategories,BOTH,,
Outlook Mail,GET,get email headers,/beta/me/messages?$select=internetMessageHeaders&$top=1,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/message,BOTH,,
Outlook Mail,GET,list conference rooms,/beta/me/findRooms,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_findrooms,AAD,,
Security,GET,alerts,/v1.0/security/alerts?$top=1,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,alerts with 'High' severity,/v1.0/security/alerts?$filter=Severity eq 'High'&$top=5,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,alerts from 'Azure Security Center',/v1.0/security/alerts?$filter=vendorInformation/provider eq 'ASC'&$top=5,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,alerts filter by 'Category',/v1.0/security/alerts?$filter=Category eq 'ransomware'&$top=5,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,alerts filter by destination address,/v1.0/security/alerts?$filter=networkConnections/any(d:d/destinationAddress eq '{destination-address}'),This query requires a destination address. Run https://graph.microsoft.com/v1.0/security/alerts?$top=1 and search the results for a destinationAddress property.,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,alerts filter by 'Status',/v1.0/security/alerts?$filter=Status eq 'NewAlert'&$top=1,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_list,AAD,,
Security,GET,secure scores (beta),/beta/security/secureScores?$top=5,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/securescores_list,AAD,,
Security,GET,secure score control profiles (beta),/beta/security/secureScoreControlProfiles?$top=5,,https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/securescorecontrolprofiles_list,AAD,,
Security,Get,TI indicators (beta),/beta/security/tiIndicators,,https://docs.microsoft.com/en-us/graph/api/tiindicators-list,AAD,,
Security,Get,security actions (beta),/beta/security/securityActions,,https://docs.microsoft.com/en-us/graph/api/securityactions-list,AAD,,
Security,PATCH,update alert,/v1.0/security/alerts/{alert-id},"This query requires an alert id. To find the ID of the alert, you can run: GET https://graph.microsoft.com/v1.0/security/alerts?$top=1",https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/alert_update,AAD,"{
""assignedTo"": ""[email protected]"",
""comments"": [""Comment 0"", ""Comment 1""],
""tags"": [""Tag 0"", ""Tag 1""],
""feedback"": ""truePositive"",
""status"": ""newAlert"",
""vendorInformation"": {
""provider"": ""provider"",
""providerVersion"": ""3.0"",
""subProvider"": null,
""vendor"": ""vendor""
}
}",
Security,POST,create TI indicator (beta),/beta/security/tiIndicators,,https://docs.microsoft.com/en-us/graph/api/tiindicators-post,AAD,"{
""activityGroupNames"": [
""activityGroupNames-value""
],
""confidence"": 90,
""description"": ""This is a test indicator for demo purpose."",
""expirationDateTime"": ""{next-week}"",
""externalId"": ""Test-8586502158541347997MS342"",
""fileHashType"": ""sha256"",
""fileHashValue"": ""289a8e8c330c27ab893fb769db38046feaca9d0b11e0aaa416ba70b0a51d58a4"",
""targetProduct"": ""Azure ATP"",
""threatType"": ""WatchList"",
""tlpLevel"": ""green""
}",
Security,POST,create multiple TI indicators (beta),/beta/security/tiIndicators/microsoft.graph.submitTiIndicators,,https://docs.microsoft.com/en-us/graph/api/tiindicator-submittiindicators,AAD,"{
""value"": [
{
""activityGroupNames"": [],
""confidence"": 0,
""description"": ""This is a test indicator for demo purpose. Take no action on any observables set in this indicator."",
""externalId"": ""Test-8586502120486653922MS812-0"",
""fileHashType"": ""sha256"",
""fileHashValue"": ""0c0ebb4c90fa39785745bcc5e5cb40e3db7791be030061e2818684bc128b8f97"",
""killChain"": [],
""malwareFamilyNames"": [],
""severity"": 0,
""tags"": [],
""targetProduct"": ""Azure ATP"",
""threatType"": ""WatchList"",
""tlpLevel"": ""green""
},
{
""activityGroupNames"": [],
""confidence"": 0,
""description"": ""This is a test indicator for demo purpose. Take no action on any observables set in this indicator."",
""externalId"": ""Test-8586502120486653922MS812-1"",
""fileHashType"": ""sha256"",
""fileHashValue"": ""86267de22dbad234ecf97870fdcf1a0e31149ee7a5fb595c050f69ca00f3529e"",
""killChain"": [],
""malwareFamilyNames"": [],
""severity"": 0,
""tags"": [],
""targetProduct"": ""Azure ATP"",
""threatType"": ""WatchList"",
""tlpLevel"": ""green""
}
]
}",
Security,PATCH,update a TI indicator (beta),/beta/security/tiIndicators/{id},"This query requires the TI indicator id. To find the ID, you can run: GET https://graph.microsoft.com/beta/security/tiIndicators?$top=1",https://docs.microsoft.com/en-us/graph/api/tiindicator-update,AAD," {
""additionalInformation"": ""Testing""
}",
Security,POST,update multiple TI indicators (beta),/beta/security/tiIndicators/microsoft.graph.updateTiIndicators,"This query requires the TI indicator id. To find the ID, you can run: GET https://graph.microsoft.com/beta/security/tiIndicators?$top=5
",https://docs.microsoft.com/en-us/graph/api/tiindicator-updatetiindicators,AAD,"{
""value"": [
{
""id"": ""tiindicator-id-1"",
""additionalInformation"": ""Testing""
},
{
""id"": ""tiindicator-id-2"",
""additionalInformation"": ""Testing 2""
}
]
}",
Security,POST,create security action (beta),/beta/security/securityActions,"Change the provider, vendor and parameters are needed",https://docs.microsoft.com/en-us/graph/api/securityactions-post,AAD,"{
""name"": ""blockIp"",
""vendorInformation"" :
{ ""provider"": ""Windows Defender ATP"",
""vendor"": ""Microsoft""
},
""parameters"" : [
{""name"": ""IP"", ""value"":""1.2.3.4"" }
]
}",
Security,DELETE,delete TI indicator (beta),/beta/security/tiIndicators/{id},"This query requires the TI indicator id. To find the ID, you can run: GET https://graph.microsoft.com/beta/security/tiIndicators?$top=1",https://docs.microsoft.com/en-us/graph/api/tiindicator-delete,AAD,,
Security,POST,delete multiple TI indicators (beta),/beta/security/tiIndicators/microsoft.graph.deleteTiIndicators,"This query requires the TI indicator id. To find the ID, you can run: GET https://graph.microsoft.com/beta/security/tiIndicators?$top=5",https://docs.microsoft.com/en-us/graph/api/tiindicator-deletetiindicators,AAD,"{
""value"": [
""tiindicatorid-value1"",
""tiindicatorid-value2""
]
}",
Security,POST,delete multiple TI indicators by external Id (beta),/beta/security/tiIndicators/microsoft.graph.deleteTiIndicatorsByExternalId,"This query requires the TI indicator external id. To find the ID, you can run: GET https://graph.microsoft.com/beta/security/tiIndicators?$top=5",https://docs.microsoft.com/en-us/graph/api/tiindicator-deletetiindicatorsbyexternalid,AAD,"{
""value"": [
""tiindicator-externalId-value1"",
""tiindicator-externalId-value2""
]
}",
User Activities,PUT,create a user activity and history item,/v1.0/me/activities/uniqueIdInAppContext,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/projectrome_put_activity#example-2---deep-insert,BOTH,"{
""appActivityId"": ""uniqueIdInAppContext"",
""activitySourceHost"": ""https://graphexplorer.blob.core.windows.net"",
""userTimezone"": ""America/Los Angeles"",
""appDisplayName"": ""Graph Explorer"",
""activationUrl"": ""https://developer.microsoft.com/en-us/graph/graph-explorer"",
""fallbackUrl"": ""https://developer.microsoft.com/en-us/graph/graph-explorer"",
""contentInfo"": {
""@context"": ""http://schema.org"",
""@type"": ""CreativeWork"",
""author"": ""Jennifer Booth"",
""name"": ""Graph Explorer User Activity""
},
""visualElements"": {
""attribution"": {
""iconUrl"": ""https://graphexplorer.blob.core.windows.net/explorerIcon.png"",
""alternateText"": ""Microsoft Graph Explorer"",
""addImageQuery"": ""false""
},
""description"": ""A user activity made through the Microsoft Graph Explorer"",
""backgroundColor"": ""#008272"",
""displayText"": ""Graph Explorer Sample User Activity"",
""content"": {
""$schema"": ""http://adaptivecards.io/schemas/adaptive-card.json"",
""type"": ""AdaptiveCard"",
""body"":
[{
""type"": ""TextBlock"",
""text"": ""With activities, developers have a way to capture the unique tasks for users of their app which flow seamlessly across any platform and device, allowing them to quickly resume working on their preferred screen. Using the Activity Feed, developers can create a human-centric view of the tasks most important to users helping reduce friction when switching from web to mobile to PC and beyond.""
}]
}
},
""historyItems"":[
{
""userTimezone"": ""America/Los Angeles"",
""startedDateTime"": ""{todayMinusHour}"",
""lastActiveDateTime"": ""{today}""
}
]
}",Content-Type: application/json
User Activities,GET,get recent user activities,/v1.0/me/activities/recent,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/projectrome_get_recent_activities,BOTH,,
Applications,GET,retrieve the list of applications,/v1.0/applications,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_list,AAD,,
Applications,POST,create a new application,/v1.0/applications,,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_post_applications,AAD,"{
""displayName"": ""My App""
}",Content-type: application/json
Applications,GET,retrieve application properties,"/v1.0/applications/{application-id}",To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_get,,
Applications,PATCH,update application properties,/v1.0/applications/{application-id},To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_update,AAD,"{
""signInAudience"": ""AzureADMyOrg""
}",Content-type: application/json
Applications,DELETE,delete an application,/v1.0/applications/{application-id},To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_delete,AAD,,
Applications,POST,add a strong password to an application,/v1.0/applications/{application-id}/addpassword,To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_addpassword, "AAD","{
""passwordCredential"": {
""displayName"": ""Password friendly name""
}
}",Content-type: application/json
Applications,POST,remove a password from an application,/v1.0/applications/{application-id}/removepassword,To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_removepassword, "AAD","{
""keyId"": ""<keyId of the password to be removed>""
}",Content-type: application/json
Applications,GET,retrieve a list of owners,"/v1.0/applications/{application-id}/owners",To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_list_owners,AAD,,
Applications,POST,create a new owner,/v1.0/applications/{application-id}/owners,To use this query, first retrieve the object ID of the application. To find the object ID, run GET https://graph.microsoft.com/v1.0/applications. In the request body supply a JSON representation of directoryObject object,https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/application_post_owners,"AAD","{
""directoryObject"": {
}
}",Content-type: application/json
Notifications (beta),POST,create a raw notification,/beta/me/notifications,Please enable the Notifications.ReadWrite.CreatedByApp permission in order to use this query. A raw notification is a notification that is received by the application and processed in an application specific manner. A raw notification may or may not include UI/UX for the user. Note - This query will only work with a sample application by default. See https://aka.ms/projectRomeSamples/ for additional info.,https://docs.microsoft.com/en-us/graph/api/notifications-post?view=graph-rest-beta,BOTH,"{
""targetHostName"": ""graphnotifications.sample.windows.com"",
""appNotificationId"": ""sampleRawNotification"",
""payload"": {
""rawContent"": ""Hello World!""
},
""targetPolicy"": {
""platformTypes"": [
""windows"",
""ios"",
""android""
]
},
""priority"": ""High"",
""displayTimeToLive"": ""60""
}",Content-Type: application/json
Notifications (beta),POST,create a visual notification,/beta/me/notifications,Please enable the Notifications.ReadWrite.CreatedByApp permission in order to use this query. A visual notification is a notification that a user can see by default within the notification center of the target platform. Note - This query will only work with a sample application by default. See https://aka.ms/projectRomeSamples/ for additional info.,https://docs.microsoft.com/en-us/graph/api/notifications-post?view=graph-rest-beta,BOTH,"{
""targetHostName"": ""graphnotifications.sample.windows.com"",
""appNotificationId"": ""sampleDirectToastNotification"",
""payload"": {
""visualContent"": {
""title"": ""Hello World!"",
""body"": ""Notifications are Great!""
}
},
""targetPolicy"": {
""platformTypes"": [
""windows"",
""ios"",
""android""
]
},
""priority"": ""High"",
""displayTimeToLive"": ""60""
}",Content-Type: application/json
Search (beta),POST,search messages,/beta/search/query,enable Mail.Read,https://aka.ms/mssearchapi,AAD,"{
""requests"": [
{
""entityTypes"": [""microsoft.graph.message""],
""query"": {
""query_string"": {
""query"": ""test""
}
},
""from"": 0,
""size"" : 5
}
]
}",Content-Type: application/json
Search (beta),POST,search events,/beta/search/query,enable Calendars.Read,https://aka.ms/mssearchapi,AAD,"{
""requests"": [
{
""entityTypes"": [""microsoft.graph.event""],
""query"": {
""query_string"": {
""query"": ""test""
}
},
""from"": 0,
""size"": 5
}]
}",Content-Type: application/json
Search (beta),POST,search driveitems,/beta/search/query,enable Files.Read.All,https://aka.ms/mssearchapi,AAD,"{
""requests"": [
{
""entityTypes"": [""microsoft.graph.driveItem""],
""query"": {
""query_string"": {
""query"": ""test""
}
},
""from"": 0,
""size"": 25
}
]
}",Content-Type: application/json
Search (beta),POST,search external files,/beta/search/query,enable ExternalItem.Read.All,https://aka.ms/mssearchapi,AAD,"{
""requests"": [{
""entityTypes"": [""microsoft.graph.externalFile""],
""query"": {
""query_string"": {
""query"": ""test""
}
},
""from"": 0,
""size"": 25
}]
}",Content-Type: application/json
Search (beta),POST,search external items,/beta/search/query,enable ExternalItem.Read.All,https://aka.ms/mssearchapi,AAD,"{
""requests"": [{
""entityTypes"": [""microsoft.graph.externalItem""],
""contentSources"": [""/external/connections/connection_friendly_name""],
""query"": {
""query_string"": {
""query"": ""test""
}
},
""from"": 0,
""size"": 25,
""stored_fields"": [
""number"",
""shortdescription""
]
}]
}",Content-Type: application/json