Skip to content

Commit 713112a

Browse files
committed
Post API updates.
1 parent fd12711 commit 713112a

File tree

5 files changed

+47
-36
lines changed

5 files changed

+47
-36
lines changed

api-reference/v1.0/api/post_forward.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
### Prerequisites
5-
One of the following **scopes** is required to execute this API:
5+
One of the following **scopes** is required to execute this API:
6+
7+
* Group.ReadWrite
8+
* Group.Readwrite.All
9+
610
### HTTP request
711
<!-- { "blockType": "ignored" } -->
812
```http
@@ -11,17 +15,17 @@ POST /groups/<id>/conversations/<id>/threads/<id>/posts/<id>/microsoft.graph.for
1115
1216
```
1317
### Request headers
14-
| Name | Type | Description|
15-
|:---------------|:--------|:----------|
16-
| Authorization | string | Bearer <token>. Required. |
18+
| Header | Value |
19+
|:---------------|:--------|
20+
| Authorization | Bearer <token>. Required. |
1721

1822
### Request body
1923
In the request body, provide a JSON object with the following parameters.
2024

2125
| Parameter | Type |Description|
2226
|:---------------|:--------|:----------|
2327
|comment|String||
24-
|toRecipients|Recipient||
28+
|toRecipients|Collection([recipient](../resources/recipient.md))||
2529

2630
### Response
2731
If successful, this method returns `200, OK` response code. It does not return anything in the response body.
@@ -52,7 +56,6 @@ Content-length: 166
5256
}
5357
```
5458

55-
##### Response
5659
##### Response
5760
Here is an example of the response.
5861
<!-- {

api-reference/v1.0/api/post_list_attachments.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22

33
Retrieve a list of attachment objects.
44
### Prerequisites
5-
One of the following **scopes** is required to execute this API: _Groups.Read_
5+
One of the following **scopes** is required to execute this API:
6+
7+
* Group.Read
8+
* Group.ReadWrite
9+
* Group.Read.All
10+
* Group.Readwrite.All
11+
612
### HTTP request
713
<!-- { "blockType": "ignored" } -->
814
```http
@@ -12,9 +18,9 @@ GET /groups/<id>/conversations/<id>/threads/<id>/posts/<id>/attachments
1218
### Optional query parameters
1319
This method supports the [OData Query Parameters](http://graph.microsoft.io/docs/overview/query_parameters) to help customize the response.
1420
### Request headers
15-
| Name | Type | Description|
16-
|:-----------|:------|:----------|
17-
| Authorization | string | Bearer <token>. Required. |
21+
| Header | Value |
22+
|:---------------|:--------|
23+
| Authorization | Bearer <token>. Required. |
1824

1925
### Request body
2026
Do not supply a request body for this method.
@@ -46,14 +52,13 @@ Content-length: 215
4652
"value": [
4753
{
4854
"@odata.type": "#Microsoft.OutlookServices.FileAttachment",
55+
"id": "id-value",
4956
"contentType": "contentType-value",
5057
"contentLocation": "contentLocation-value",
5158
"contentBytes": "contentBytes-value",
5259
"contentId": "null",
5360
"lastModifiedDateTime": "datetime-value",
54-
"id": "id-value",
5561
"isInline": false,
56-
"isContactPhoto": false,
5762
"name": "name-value",
5863
"size": 99
5964
}

api-reference/v1.0/api/post_post_attachments.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
Use this API to create a new Attachment.
44
### Prerequisites
5-
One of the following **scopes** is required to execute this API: _Groups.ReadWrite_
5+
One of the following **scopes** is required to execute this API:
6+
7+
* Group.ReadWrite
8+
* Group.Readwrite.All
9+
610
### HTTP request
711
<!-- { "blockType": "ignored" } -->
812
```http
@@ -11,9 +15,9 @@ POST /groups/<id>/conversations/<id>/threads/<id>/posts/<id>/attachments
1115
1216
```
1317
### Request headers
14-
| Name | Type | Description|
15-
|:---------------|:--------|:----------|
16-
| Authorization | string | Bearer <token>. Required. |
18+
| Header | Value |
19+
|:---------------|:--------|
20+
| Authorization | Bearer <token>. Required. |
1721

1822
### Request body
1923
In the request body, supply a JSON representation of [Attachment](../resources/attachment.md) object.

api-reference/v1.0/api/post_reply.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
### Prerequisites
5-
One of the following **scopes** is required to execute this API:
5+
One of the following **scopes** is required to execute this API:
6+
7+
* Group.ReadWrite
8+
* Group.Readwrite.All
9+
610
### HTTP request
711
<!-- { "blockType": "ignored" } -->
812
```http
@@ -11,16 +15,16 @@ POST /groups/<id>/conversations/<id>/threads/<id>/posts/<id>/microsoft.graph.rep
1115
1216
```
1317
### Request headers
14-
| Name | Type | Description|
15-
|:---------------|:--------|:----------|
16-
| Authorization | string | Bearer <token>. Required. |
18+
| Header | Value |
19+
|:---------------|:--------|
20+
| Authorization | Bearer <token>. Required. |
1721

1822
### Request body
1923
In the request body, provide a JSON object with the following parameters.
2024

2125
| Parameter | Type |Description|
2226
|:---------------|:--------|:----------|
23-
|post|Post||
27+
|post|[post](../resources/post.md)||
2428

2529
### Response
2630
If successful, this method returns `200, OK` response code. It does not return anything in the response body.

api-reference/v1.0/api/post_update.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,30 @@
22

33
Update the properties of post object.
44
### Prerequisites
5-
One of the following **scopes** is required to execute this API:
5+
One of the following **scopes** is required to execute this API:
6+
7+
* Group.ReadWrite
8+
* Group.Readwrite.All
9+
610
### HTTP request
711
<!-- { "blockType": "ignored" } -->
812
```http
913
PATCH /groups/<id>/threads/<id>/posts/<id>
1014
PATCH /groups/<id>/conversations/<id>/threads/<id>/posts/<id>
1115
```
1216
### Request headers
13-
| Name | Type | Description|
14-
|:-----------|:------|:----------|
15-
| Authorization | string | Bearer <token>. Required. |
17+
| Header | Value |
18+
|:---------------|:--------|
19+
| Authorization | Bearer <token>. Required. |
1620

1721
### Request body
1822
In the request body, supply the values for relevant fields that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values. For best performance you shouldn't include existing values that haven't changed.
1923

2024
| Property | Type |Description|
2125
|:---------------|:--------|:----------|
22-
|body|ItemBody||
26+
|body|[itemBody](../resources/itemBody.md)||
2327
|categories|String||
24-
|changeKey|String||
25-
|conversationId|String||
26-
|conversationThreadId|String||
27-
|createdDateTime|DateTimeOffset||
28-
|from|Recipient||
29-
|hasAttachments|Boolean||
30-
|lastModifiedDateTime|DateTimeOffset||
31-
|newParticipants|Recipient||
32-
|receivedDateTime|DateTimeOffset||
33-
|sender|Recipient||
28+
|newParticipants|[recipient](../resources/recipient.md)||
3429

3530
### Response
3631
If successful, this method returns a `200 OK` response code and updated [post](../resources/post.md) object in the response body.

0 commit comments

Comments
 (0)