Skip to content

Commit 0c94f78

Browse files
authored
Add examples and notes for one-on-one chat creation.
1 parent 1162ec1 commit 0c94f78

File tree

2 files changed

+42
-12
lines changed

2 files changed

+42
-12
lines changed

api-reference/beta/api/chat-post.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,10 +361,19 @@ Location: /chats('19:82fe7758-5bb3-4f0d-a43f-e555fd399c6f_bfb5bb25-3a8d-487d-982
361361

362362
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).
363363

364-
### Example 4: Create a one-on-one chat with installed apps which have resource-specific consent (RSC) permissions
364+
### Example 4: Create a one-on-one chat with RSC-granted apps
365+
366+
The following example shows how to create a one-on-one chat with installed apps that have resource-specific consent (RSC) permissions.
365367

366368
#### Request
367369

370+
The following example shows a request.
371+
372+
<!-- {
373+
"blockType": "request",
374+
"name": "create_chat_oneonone_with_rsc_granted_apps"
375+
}
376+
-->
368377
``` http
369378
POST https://graph.microsoft.com/beta/chats
370379
Content-Type: application/json
@@ -404,9 +413,11 @@ Content-Type: application/json
404413
```
405414

406415
#### Response
407-
408-
>**Note:** The response object shown here might be shortened for readability.
409-
416+
The following example shows the response.
417+
<!-- {
418+
"blockType": "response"
419+
}
420+
-->
410421
```http
411422
HTTP/1.1 202 Accepted
412423
Content-Type: application/json
@@ -707,7 +718,7 @@ HTTP/1.1 201 Created
707718
Content-Type: application/json
708719
709720
{
710-
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#chats/$entity",
721+
"@odata.context": "https://graph.microsoft.com/beta/$metadata#chats/$entity",
711722
"id": "19:82af01c5-f7cc-4a2e-a728-3a5df21afd9d_8b081ef6-4792-4def-b2c9-c363a1bf41d5@unq.gbl.spaces",
712723
"topic": null,
713724
"createdDateTime": "2020-12-04T23:10:28.51Z",

api-reference/v1.0/api/chat-post.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,17 @@ Content-Type: application/json
241241

242242
### Example 3: Create a one-on-one chat with installed apps
243243

244+
The following example shows how to create a one-on-one chat with installed apps.
245+
244246
#### Request
245247

248+
The following example shows a request.
249+
250+
<!-- {
251+
"blockType": "request",
252+
"name": "create_chat_oneonone_with_installed_apps"
253+
}
254+
-->
246255
``` http
247256
POST https://graph.microsoft.com/v1.0/chats
248257
Content-Type: application/json
@@ -269,11 +278,10 @@ Content-Type: application/json
269278
}
270279
```
271280

272-
---
273-
274281
#### Response
275282

276-
>**Note:** The response object shown here might be shortened for readability.
283+
The following example shows the response.
284+
277285
<!-- {
278286
"blockType": "response"
279287
}
@@ -284,10 +292,19 @@ Content-Type: application/json
284292
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')
285293
```
286294

287-
### Example 4: Create a one-on-one chat with installed apps which have resource-specific consent (RSC) permissions
295+
### Example 4: Create a one-on-one chat with RSC-granted apps
296+
297+
The following example shows how to create a one-on-one chat with installed apps that have resource-specific consent (RSC) permissions.
288298

289299
#### Request
290300

301+
The following example shows a request.
302+
303+
<!-- {
304+
"blockType": "request",
305+
"name": "create_chat_oneonone_with_rsc_granted_apps"
306+
}
307+
-->
291308
``` http
292309
POST https://graph.microsoft.com/v1.0/chats
293310
Content-Type: application/json
@@ -327,9 +344,11 @@ Content-Type: application/json
327344
```
328345

329346
#### Response
330-
331-
>**Note:** The response object shown here might be shortened for readability.
332-
347+
The following example shows the response.
348+
<!-- {
349+
"blockType": "response"
350+
}
351+
-->
333352
```http
334353
HTTP/1.1 202 Accepted
335354
Content-Type: application/json

0 commit comments

Comments
 (0)