@@ -361,7 +361,59 @@ Location: /chats('19:82fe7758-5bb3-4f0d-a43f-e555fd399c6f_bfb5bb25-3a8d-487d-982
361
361
362
362
The async operation is initiated, and the response contains a Location header, which includes a link to the [ teamsAsyncOperation] ( ../resources/teamsasyncoperation.md ) . The link can be used to get the operation status and details. For details, see [ Get operation on chat] ( teamsasyncoperation-get.md#example-get-operation-on-chat ) .
363
363
364
- ### Example 4: Create a one-on-one chat using user principal name
364
+ ### Example 4: Create a one-on-one chat with installed apps which have resource-specific consent (RSC) permissions
365
+
366
+ #### Request
367
+
368
+ ``` http
369
+ POST https://graph.microsoft.com/beta/chats
370
+ Content-Type: application/json
371
+
372
+ {
373
+ "chatType": "oneOnOne",
374
+ "members": [
375
+ {
376
+ "@odata.type": "#microsoft.graph.aadUserConversationMember",
377
+ "roles": ["owner"],
378
+ "user@odata.bind": "https://graph.microsoft.com/beta/users('4b822dfc-2864-44e6-aa1e-7e0e8552168f')"
379
+ },
380
+ {
381
+ "@odata.type": "#microsoft.graph.aadUserConversationMember",
382
+ "roles": ["owner"],
383
+ "user@odata.bind": "https://graph.microsoft.com/beta/users('6d1e1501-7a3d-45b7-b71b-68d372e5ce14')"
384
+ }
385
+ ],
386
+ "installedApps": [
387
+ {
388
+ "teamsApp@odata.bind": "https://graph.microsoft.com/beta/appCatalogs/teamsApps/8e55a7b1-6766-4f0a-8610-ecacfe3d569a",
389
+ "consentedPermissionSet": {
390
+ "resourceSpecificPermissions": [
391
+ {
392
+ "permissionValue": "ChatMessage.Read.Chat",
393
+ "permissionType": "application"
394
+ },
395
+ {
396
+ "permissionValue": "OnlineMeeting.ReadBasic.Chat",
397
+ "permissionType": "application"
398
+ }
399
+ ]
400
+ }
401
+ }
402
+ ]
403
+ }
404
+ ```
405
+
406
+ #### Response
407
+
408
+ > ** Note:** The response object shown here might be shortened for readability.
409
+
410
+ ``` http
411
+ HTTP/1.1 202 Accepted
412
+ Content-Type: application/json
413
+ Location: /chats('19:82fe7758-5bb3-4f0d-a43f-e555fd399c6f_bfb5bb25-3a8d-487d-9828-7875ced51a30@unq.gbl.spaces')/operations('2432b57b-0abd-43db-aa7b-16eadd115d34-861f06db-0208-4815-b67a-965df0d28b7f-10adc8a6-60db-42e2-9761-e56a7e4c7bc9')
414
+ ```
415
+
416
+ ### Example 5: Create a one-on-one chat using user principal name
365
417
366
418
#### Request
367
419
@@ -465,7 +517,7 @@ Content-Type: application/json
465
517
}
466
518
```
467
519
468
- ### Example 5 : Create a group chat with in-tenant guest
520
+ ### Example 6 : Create a group chat with in-tenant guest
469
521
470
522
#### Request
471
523
@@ -574,7 +626,7 @@ Content-Type: application/json
574
626
}
575
627
```
576
628
577
- ### Example 6 : Create a one-on-one chat with a federated user (outside of own organization)
629
+ ### Example 7 : Create a one-on-one chat with a federated user (outside of own organization)
578
630
579
631
#### Request
580
632
@@ -679,58 +731,6 @@ Content-Type: application/json
679
731
}
680
732
```
681
733
682
- ### Example 7: Create a one-on-one chat with installed apps which have resource-specific consent (RSC) permissions
683
-
684
- #### Request
685
-
686
- ``` http
687
- POST https://graph.microsoft.com/beta/chats
688
- Content-Type: application/json
689
-
690
- {
691
- "chatType": "oneOnOne",
692
- "members": [
693
- {
694
- "@odata.type": "#microsoft.graph.aadUserConversationMember",
695
- "roles": ["owner"],
696
- "user@odata.bind": "https://graph.microsoft.com/beta/users('4b822dfc-2864-44e6-aa1e-7e0e8552168f')"
697
- },
698
- {
699
- "@odata.type": "#microsoft.graph.aadUserConversationMember",
700
- "roles": ["owner"],
701
- "user@odata.bind": "https://graph.microsoft.com/beta/users('6d1e1501-7a3d-45b7-b71b-68d372e5ce14')"
702
- }
703
- ],
704
- "installedApps": [
705
- {
706
- "teamsApp@odata.bind": "https://graph.microsoft.com/beta/appCatalogs/teamsApps/8e55a7b1-6766-4f0a-8610-ecacfe3d569a",
707
- "consentedPermissionSet": {
708
- "resourceSpecificPermissions": [
709
- {
710
- "permissionValue": "ChatMessage.Read.Chat",
711
- "permissionType": "application"
712
- },
713
- {
714
- "permissionValue": "OnlineMeeting.ReadBasic.Chat",
715
- "permissionType": "application"
716
- }
717
- ]
718
- }
719
- }
720
- ]
721
- }
722
- ```
723
-
724
- #### Response
725
-
726
- > ** Note:** The response object shown here might be shortened for readability.
727
-
728
- ``` http
729
- HTTP/1.1 202 Accepted
730
- Content-Type: application/json
731
- Location: /chats('19:82fe7758-5bb3-4f0d-a43f-e555fd399c6f_bfb5bb25-3a8d-487d-9828-7875ced51a30@unq.gbl.spaces')/operations('2432b57b-0abd-43db-aa7b-16eadd115d34-861f06db-0208-4815-b67a-965df0d28b7f-10adc8a6-60db-42e2-9761-e56a7e4c7bc9')
732
- ```
733
-
734
734
## Related content
735
735
736
736
- [ Get teamsAsyncOperation] ( teamsasyncoperation-get.md )
0 commit comments