Skip to content

Latest commit

 

History

History
179 lines (139 loc) · 5.65 KB

File metadata and controls

179 lines (139 loc) · 5.65 KB
author sangle7
description Read the properties and relationships of a baseSitePage object.
ms.date 03/15/2018
title Get baseSitePage
ms.localizationpriority medium
ms.subservice sharepoint
doc_type apiPageType

Get baseSitePage

Namespace: microsoft.graph

Get the metadata for a baseSitePage in the site pages list in a site.

[!INCLUDE national-cloud-support]

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.

[!INCLUDE permissions-table]

HTTP request

GET /sites/{site-id}/pages/{page-id}

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.
Content-Type application/json. Required.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 and a baseSitePage object in the response body.

Example

Request

The following example shows a request.

GET /sites/7f50f45e-714a-4264-9c59-3bf43ea4db8f/pages/df69e386-6c58-4df2-afc0-ab6327d5b202

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]

[!INCLUDE sample-code] [!INCLUDE sdk-documentation]



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.type": "#microsoft.graph.sitePage",
    "@odata.etag": "\"{F45354CB-D634-45DF-8B88-2B4E96A1DC45},8\"",
    "description": "Reiciendis placeat dolores.Mollitia veniam tempora tempora quidem voluptatum.Quos animi maiores facilis.Dolores officiis consequatur provident beatae deleniti accusamus magni quam tenetur.",
    "eTag": "\"{F45354CB-D634-45DF-8B88-2B4E96A1DC45},8\"",
    "id": "f45354cb-d634-45df-8b88-2b4e96a1dc45",
    "lastModifiedDateTime": "2023-04-16T10:01:41Z",
    "name": "Electronic Convertible.aspx",
    "webUrl": "https://contoso.sharepoint.com/SitePages/Electronic Convertible.aspx",
    "title": "Electronic Convertible",
    "pageLayout": "article",
    "thumbnailWebUrl": "https://media.akamai.odsp.cdn.office.net/_layouts/15/images/sitepagethumbnail.png",
    "promotionKind": "page",
    "showComments": false,
    "showRecommendedPages": true,
    "contentType": {
        "id": "0x0101009D1CB255DA76424F860D91F20E6C4118009E6554A5E299E84FB2E07731DD6C6D4A",
        "name": "Site Page"
    },
    "createdBy": {
        "user": {
            "displayName": "admin_contoso",
            "email": "admin@contoso.onmicrosoft.com"
        }
    },
    "lastModifiedBy": {
        "user": {
            "displayName": "admin_contoso",
            "email": "admin@contoso.onmicrosoft.com"
        }
    },
    "parentReference": {
        "siteId": "45bb2a3b-0a4e-46f4-8c68-749c3fea75d3"
    },
    "publishingState": {
        "level": "draft",
        "versionId": "0.4"
    },
    "reactions": {}
}