onenoteSection resource type

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.

A section in a OneNote notebook. Sections can contain pages.

Properties

Property Type Description
createdBy identitySet Identity of the user, device, and application which created the item. Read-only.
createdDateTime DateTimeOffset The date and time when the section was created. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
id String The unique identifier of the section. Read-only.
isDefault Boolean Indicates whether this is the user's default section. Read-only.
lastModifiedBy identitySet Identity of the user, device, and application which created the item. Read-only.
lastModifiedDateTime DateTimeOffset The date and time when the section was last modified. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only.
links sectionLinks Links for opening the section. The oneNoteClientURL link opens the section in the OneNote native client if it's installed. The oneNoteWebURL link opens the section in OneNote on the web.
displayName String The name of the section.
pagesUrl String The pages endpoint where you can get details for all the pages in the section. Read-only.
self String The endpoint where you can get details about the section. Read-only.

Relationships

Relationship Type Description
pages onenotePage collection The collection of pages in the section. Read-only. Nullable.
parentNotebook notebook The notebook that contains the section. Read-only.
parentSectionGroup sectionGroup The section group that contains the section. Read-only.

Methods

Method Return Type Description
Get section onenoteSection Read the properties and relationships of the section.
Create page onenotePage Create a page by posting to the pages collection in the specified section.
List pages onenotePage collection Get a collection of pages in the specified section.
Copy to notebook None Copy the section to a specific notebook.
Copy to section group None Copy the section to a specific section group.

JSON representation

The following JSON representation shows the resource type.

{
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "id": "string (identifier)",
  "isDefault": true,
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "links": {"@odata.type": "microsoft.graph.sectionLinks"},
  "displayName": "string",
  "pagesUrl": "string",
  "self": "string"
}