Skip to content

Commit 702f0f6

Browse files
committed
Merge branch 'newslinkpagedocs' of https://github.com/microsoftgraph/microsoft-graph-docs into newslinkpagedocs
2 parents ddeccc6 + 13f4ca7 commit 702f0f6

File tree

7 files changed

+25
-14
lines changed

7 files changed

+25
-14
lines changed

api-reference/beta/api/newslinkpage-create.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ POST /sites/{site-id}/pages
4343

4444
## Request body
4545

46-
In the request body, supply a JSON representation of the [newsLinkPage](../resources/newslinkpage.md) object.
47-
The body must contain required properties placed directly in the request body, but to set a banner image by uploading an image it must contain multipart message format as shown in the example. For the banner image upload, since you're sending binary data, then you must send a multipart request.
46+
In the request body, supply a JSON representation of the [newsLinkPage](../resources/newslinkpage.md) object. The body must contain required properties placed directly in the request body; however, to set a banner image by uploading an image, it must be in a multipart message format as shown in the example. For the banner image upload, you must send a multipart request because it involves binary data.
4847

4948
> **Notes:**
5049
> * To ensure successful parsing of the request body, the `@odata.type=#microsoft.graph.newsLinkPage` must be included in the request body.
51-
> * Currently, to set the **bannerImageWebUrl**, we provide the capability to upload the image bytes directly, which gets auto saved in the site assets library, and the **bannerImageWebUrl** is then generated based on the persisted file. The way to do that would be to make a multipart request and set the `@microsoft.graph.bannerImageWebUrlContent` annotation to send the image content, as illustrated in the example.
50+
> * Currently, to set the **bannerImageWebUrl**, the capability exists to upload the image bytes directly. These bytes get auto-saved in the site assets library, and the **bannerImageWebUrl** is then generated based on the persisted file. To achieve this, make a multipart request and set the `@microsoft.graph.bannerImageWebUrlContent` annotation to send the image content. For more details, see [Example 2](../resources/newslinkpage.md#example-2-create-a-news-link-page-and-upload-the-banner-image-file-content).
5251
5352
You can specify the following properties when you create a [newsLinkPage](../resources/newslinkpage.md).
5453

@@ -79,8 +78,8 @@ Content-Type: application/json
7978
8079
{
8180
"@odata.type" : "#microsoft.graph.newsLinkPage",
82-
"newsWebUrl":"https://someexternalnewssite.com/2023/09/08/tech-giant-unveils-first-self-driving-bicycle",
83-
"title": "Tech Giant Unveils First Self-Driving Bicycle"
81+
"newsWebUrl":"https://someexternalnewssite.com/2024/11/11/contoso-unveils-first-self-driving-car",
82+
"title": "Contoso Unveils First Self-Driving Car"
8483
}
8584
```
8685

api-reference/beta/api/newslinkpage-publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ POST https://graph.microsoft.com/beta/sites/c1370818-f5e0-4a40-a99b-be4520640642
6969
### Response
7070

7171
The following example shows the response.
72-
>**Note:** The response object shown here might be shortened for readability.
72+
7373
<!-- {
7474
"blockType": "response",
7575
"truncated": true

api-reference/beta/api/newslinkpage-update.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ PATCH /sites/{site-id}/pages/{pageId}/microsoft.graph.newsLinkPage
4646

4747
## Request body
4848

49-
> **Notes:**
50-
> You can update the **bannerImage** property by uploading the image bytes of the new banner image you want to set. The banner image is autosaved in the site assets library, and the banner image URL is then generated based on the persisted file. Make a multipart request and set the @microsoft.graph.bannerImageWebUrlContent annotation to send the image content, as shown in the example.
51-
5249
[!INCLUDE [table-intro](../../includes/update-property-table-intro.md)]
5350

5451
|Property|Type|Description|
@@ -57,6 +54,9 @@ PATCH /sites/{site-id}/pages/{pageId}/microsoft.graph.newsLinkPage
5754
|newsWebUrl|String|The URL of the news article referenced by the **newsLinkPage**. It can be an external link. The maximum length limit is 110 characters.|
5855
|title|String|Title of the **newsLinkPage**. Inherited from [baseSitePage](../resources/basesitepage.md).|
5956

57+
> **Notes:**
58+
> You can update the **bannerImage** property by uploading the image bytes of the new banner image you want to set. The banner image is autosaved in the site assets library, and the banner image URL is then generated based on the persisted file. Make a multipart request and set the `@microsoft.graph.bannerImageWebUrlContent` annotation to send the image content, as shown in the example.
59+
6060
## Response
6161

6262
If successful, this method returns a `200 OK` response code and an updated [newsLinkPage](../resources/newslinkpage.md) object in the response body.

api-reference/beta/resources/basesitepage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Inherits from [baseItem](../resources/baseitem.md).
5252
| article | The page is an article page. |
5353
| home | The page is a home page. |
5454
| unknownFutureValue | Marker value for future compatibility. |
55-
| newsLinkPage | The page is a news link page that allows you to add a link to content from your site or another website. The linked content appears as a news post.|
55+
| newsLink | The page is a news link page that allows you to add a link to content from your site or another website. The linked content appears as a news post.|
5656

5757
## Relationships
5858

api-reference/beta/resources/newslinkpage.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Inherits from [baseSitePage](../resources/basesitepage.md).
2323
|Method|Return type|Description|
2424
|:---|:---|:---|
2525
|[List](../api/newslinkpage-list.md)|[newsLinkPage](../resources/newslinkpage.md) collection|Get a list of the [newsLinkPage](../resources/newslinkpage.md) objects and their properties.|
26-
|[Create](../api/newslinkpage-create.md)|[newsLinkPage](../resources/newslinkpage.md) |Create a new [newsLinkPage](../resources/newslinkpage.md) object.|
27-
|[Get](../api/newslinkpage-get.md)|[newsLinkPage](../resources/newslinkpage.md)|Read the properties and relationships of a [newsLinkPage](../resources/newslinkpage.md) object.|
26+
|[Create](../api/newslinkpage-create.md)|[newsLinkPage](../resources/newslinkpage.md) |Create a new [newsLinkPage](../resources/newslinkpage.md) in the site pages [list](../resources/list.md) of a [site](../resources/site.md).|
27+
|[Get](../api/newslinkpage-get.md)|[newsLinkPage](../resources/newslinkpage.md)|Get the metadata of a [newsLinkPage](../resources/newslinkpage.md) in the site pages [list](../resources/list.md) of a [site](../resources/site.md).|
2828
|[Update](../api/newslinkpage-update.md)|[newsLinkPage](../resources/newslinkpage.md)|Update the properties of a [newsLinkPage](../resources/newslinkpage.md) object.|
2929
|[Delete](../api/basesitepage-delete.md)|None|Delete a [newsLinkPage](../resources/newslinkpage.md) object.|
30-
|[Publish](../api/newslinkpage-publish.md)|None|Publish a [newsLinkPage](../resources/newslinkpage.md) object. |
30+
|[Publish](../api/newslinkpage-publish.md)|None|Publish the latest version of a [newsLinkPage](../resources/newslinkpage.md) resource that makes the version available to all users. |
3131

3232
## Properties
3333

@@ -59,7 +59,7 @@ Instance attributes are properties with special behaviors. These properties are
5959
|@microsoft.graph.bannerImageWebUrlContent|String|This annotation is used to send the image content in a multipart request.|
6060
|@microsoft.graph.bannerImageWebUrlContentError|String|If a failure occurs when you upload or persist the banner image during a **newsLinkPage** creation, the response contains `@microsoft.graph.bannerImageWebUrlContentError` that provides details about the error.|
6161

62-
For a POST request example, see [Create newsLinkPage)](../api/newslinkpage-create.md).
62+
For a POST request example, see [Create newsLinkPage](../api/newslinkpage-create.md).
6363

6464
## Relationships
6565

changelog/Microsoft.FileServices.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,14 @@
444444
"Description": "Added the [newsLinkPage](https://learn.microsoft.com/en-us/graph/api/resources/newsLinkPage?view=graph-rest-beta) resource and supported methods.",
445445
"Target": "newsLinkPage"
446446
},
447+
{
448+
"Id": "b4c3291a-d779-4cd5-a8e2-7310bfa50196",
449+
"ApiChange": "Method",
450+
"ChangedApiName": "publish",
451+
"ChangeType": "Addition",
452+
"Description": "Added the [publish](https://learn.microsoft.com/en-us/graph/api/newsLinkPage-publish?view=graph-rest-beta) method to the [newsLinkPage](https://learn.microsoft.com/en-us/graph/api/resources/newsLinkPage?view=graph-rest-beta) resource.",
453+
"Target": "newsLinkPage"
454+
},
447455
{
448456
"Id": "b4c3291a-d779-4cd5-a8e2-7310bfa50196",
449457
"ApiChange": "Term",

concepts/whats-new-overview.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ The new Microsoft Defender for Cloud apps API in Microsoft Graph is designed to
6363
- [discoveredCloudAppDevice](/graph/api/resources/security-discoveredcloudappdevice?view=graph-rest-beta&preserve-view=true)
6464
- [endpointDiscoveredCloudAppDetail](/graph/api/resources/security-endpointdiscoveredcloudappdetail?view=graph-rest-beta&preserve-view=true)
6565

66+
### Sites and lists
67+
68+
Create and manage a [news link page](/graph/api/resources/newslinkpage?view=graph-rest-beta&preserve-view=true) in SharePoint.
69+
6670
### Teamwork and communications | AI interactions
6771

6872
Use the [getAllEnterpriseInteractions](/graph/api/aiInteractionHistory-getAllEnterpriseInteractions) method to get Microsoft 365 Copilot interaction data, including user prompts to Copilot and Copilot responses.

0 commit comments

Comments
 (0)