List newsLinkPage

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Get a list of the newsLinkPage objects and their properties.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Sites.Read.All Sites.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application Sites.Read.All Sites.ReadWrite.All

HTTP request

GET /sites/{site-id}/pages/microsoft.graph.newsLinkPage

Optional query parameters

This method supports the $count, $expand, $filter, $orderBy, $select, and $top OData query parameters to help customize the response.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Prefer include-unknown-enum-members. You must use the Prefer: include-unknown-enum-members request header to get the following values in pageLayoutType, which is a evolvable enum: newsLink.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of newsLinkPage objects in the response body.

Examples

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/sites/056d8292-ef8a-44fe-bd22-97abf08659b1/pages/microsoft.graph.newsLinkPage

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#sites('056d8292-ef8a-44fe-bd22-97abf08659b1')/pages/microsoft.graph.newsLinkPage",
  "value": [
    {
      "@odata.type": "#microsoft.graph.newsLinkPage",
      "createdDateTime": "2024-06-11T17:31:20Z",
      "description": " In a groundbreaking study, a team of scientists has reportedly discovered the secret to eternal youth. The research, conducted in a top-secret laboratory, claims to have identified a unique combination of natural ingredients that can halt the aging process.",
      "eTag": "\"{179210C2-637E-4C61-8491-331D0D4A0C05},2\"",
      "id": "179210c2-637e-4c61-8491-331d0d4a0c05",
      "lastModifiedDateTime": "2024-06-11T17:31:21Z",
      "name": "Scientists-Discover-Secret-to-Eternal-Youth.aspx",
      "webUrl": "https://contoso.sharepoint.com/SitePages/Scientists-Discover-Secret-to-Eternal-Youth.aspx",
      "title": "Scientists Discover Secret to Eternal Youth",
      "pageLayout": "newsLink",
      "bannerImageWebUrl": "https://contoso.sharepoint.com/_layouts/15/getpreview.ashx?path=/SiteAssets/SitePages/Scientists-Discover-Secret-to-Eternal-Youth/BannerImage.png",
      "newsWebUrl": "https://someexternalnewssite.com/2024/06/11/scientists-discover-secret-to-eternal-youth",
      "createdBy": {
        "user": {
          "displayName": "John Doe",
          "email": "jdoe@contoso.com"
        }
      },
      "lastModifiedBy": {
        "user": {
          "displayName": "John Doe",
          "email": "jdoe@contoso.com"
        }
      },
      "publishingState": {
        "level": "published",
        "versionId": "1.0"
      }
    },
    {
      "@odata.type": "#microsoft.graph.newsLinkPage",
      "createdDateTime": "2024-06-11T17:31:20Z",
      "description": "You only need two simple letters to accurately convey the major shift in the technology space this year: A and I. Beyond those letters, however, is a complex, evolving and exciting way in which we work, communicate and collaborate.",
      "eTag": "\"{179210C2-637E-4C61-8491-331D0D4A0C05},2\"",
      "id": "179210c2-637e-4c61-8491-331d0d4a0c05",
      "lastModifiedDateTime": "2024-06-11T17:31:21Z",
      "name": "microsoft-build-ai-tools-developers.aspx",
      "webUrl": "https://contoso.sharepoint.com/SitePages/Microsoft-Build-brings-AI-tools-to-the-forefront-for-developers.aspx",
      "title": "Microsoft Build brings AI tools to the forefront for developers",
      "pageLayout": "newsLink",
      "bannerImageWebUrl": "https://contoso.sharepoint.com/_layouts/15/getpreview.ashx?path=/SiteAssets/SitePages/microsoft-build-ai-tools-developers/BannerImage.png",
      "newsWebUrl": "https://someexternalnewssite.com/2024/05/23/microsoft-build-ai-tools-developers",
      "createdBy": {
        "user": {
          "displayName": "John Doe",
          "email": "jdoe@contoso.com"
        }
      },
      "lastModifiedBy": {
        "user": {
          "displayName": "John Doe",
          "email": "jdoe@contoso.com"
        }
      },
      "publishingState": {
        "level": "published",
        "versionId": "1.0"
      }
    }
  ]
}