-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging changes synced from https://github.com/microsoftgraph/microso…
…ft-graph-docs (branch live)
- Loading branch information
Showing
283 changed files
with
5,004 additions
and
777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -361,7 +361,105 @@ Location: /chats('19:82fe7758-5bb3-4f0d-a43f-e555fd399c6f_bfb5bb25-3a8d-487d-982 | |
|
||
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). | ||
|
||
### Example 4: Create a one-on-one chat using user principal name | ||
### Example 4: Create a one-on-one chat with RSC-granted apps | ||
|
||
The following example shows how to create a one-on-one chat with installed apps that have resource-specific consent (RSC) permissions. | ||
|
||
#### Request | ||
|
||
The following example shows a request. | ||
|
||
# [HTTP](#tab/http) | ||
<!-- { | ||
"blockType": "request", | ||
"name": "create_chat_oneonone_with_rsc_granted_apps" | ||
} | ||
--> | ||
``` http | ||
POST https://graph.microsoft.com/beta/chats | ||
Content-Type: application/json | ||
{ | ||
"chatType": "oneOnOne", | ||
"members": [ | ||
{ | ||
"@odata.type": "#microsoft.graph.aadUserConversationMember", | ||
"roles": ["owner"], | ||
"[email protected]": "https://graph.microsoft.com/beta/users('4b822dfc-2864-44e6-aa1e-7e0e8552168f')" | ||
}, | ||
{ | ||
"@odata.type": "#microsoft.graph.aadUserConversationMember", | ||
"roles": ["owner"], | ||
"[email protected]": "https://graph.microsoft.com/beta/users('6d1e1501-7a3d-45b7-b71b-68d372e5ce14')" | ||
} | ||
], | ||
"installedApps": [ | ||
{ | ||
"[email protected]": "https://graph.microsoft.com/beta/appCatalogs/teamsApps/8e55a7b1-6766-4f0a-8610-ecacfe3d569a", | ||
"consentedPermissionSet": { | ||
"resourceSpecificPermissions": [ | ||
{ | ||
"permissionValue": "ChatMessage.Read.Chat", | ||
"permissionType": "application" | ||
}, | ||
{ | ||
"permissionValue": "OnlineMeeting.ReadBasic.Chat", | ||
"permissionType": "application" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
``` | ||
|
||
# [C#](#tab/csharp) | ||
[!INCLUDE [sample-code](../includes/snippets/csharp/create-chat-oneonone-with-rsc-granted-apps-csharp-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [CLI](#tab/cli) | ||
[!INCLUDE [sample-code](../includes/snippets/cli/create-chat-oneonone-with-rsc-granted-apps-cli-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [Go](#tab/go) | ||
[!INCLUDE [sample-code](../includes/snippets/go/create-chat-oneonone-with-rsc-granted-apps-go-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [Java](#tab/java) | ||
[!INCLUDE [sample-code](../includes/snippets/java/create-chat-oneonone-with-rsc-granted-apps-java-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [JavaScript](#tab/javascript) | ||
[!INCLUDE [sample-code](../includes/snippets/javascript/create-chat-oneonone-with-rsc-granted-apps-javascript-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [PHP](#tab/php) | ||
[!INCLUDE [sample-code](../includes/snippets/php/create-chat-oneonone-with-rsc-granted-apps-php-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [PowerShell](#tab/powershell) | ||
[!INCLUDE [sample-code](../includes/snippets/powershell/create-chat-oneonone-with-rsc-granted-apps-powershell-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
# [Python](#tab/python) | ||
[!INCLUDE [sample-code](../includes/snippets/python/create-chat-oneonone-with-rsc-granted-apps-python-snippets.md)] | ||
[!INCLUDE [sdk-documentation](../includes/snippets/snippets-sdk-documentation-link.md)] | ||
|
||
--- | ||
|
||
#### Response | ||
The following example shows the response. | ||
<!-- { | ||
"blockType": "response" | ||
} | ||
--> | ||
```http | ||
HTTP/1.1 202 Accepted | ||
Content-Type: application/json | ||
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') | ||
``` | ||
|
||
### Example 5: Create a one-on-one chat using user principal name | ||
|
||
#### Request | ||
|
||
|
@@ -465,7 +563,7 @@ Content-Type: application/json | |
} | ||
``` | ||
|
||
### Example 5: Create a group chat with in-tenant guest | ||
### Example 6: Create a group chat with in-tenant guest | ||
|
||
#### Request | ||
|
||
|
@@ -574,7 +672,7 @@ Content-Type: application/json | |
} | ||
``` | ||
|
||
### Example 6: Create a one-on-one chat with a federated user (outside of own organization) | ||
### Example 7: Create a one-on-one chat with a federated user (outside of own organization) | ||
|
||
#### Request | ||
|
||
|
@@ -655,7 +753,7 @@ HTTP/1.1 201 Created | |
Content-Type: application/json | ||
{ | ||
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#chats/$entity", | ||
"@odata.context": "https://graph.microsoft.com/beta/$metadata#chats/$entity", | ||
"id": "19:82af01c5-f7cc-4a2e-a728-3a5df21afd9d_8b081ef6-4792-4def-b2c9-c363a1bf41d5@unq.gbl.spaces", | ||
"topic": null, | ||
"createdDateTime": "2020-12-04T23:10:28.51Z", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.