notebook resource type

A OneNote notebook.

JSON representation

Here is a JSON representation of the resource

{
  "createdBy": "string",
  "createdTime": "String (timestamp)",
  "id": "string (identifier)",
  "isDefault": true,
  "isShared": true,
  "lastModifiedBy": "string",
  "lastModifiedTime": "String (timestamp)",
  "links": {"@odata.type": "microsoft.graph.notebookLinks"},
  "name": "string",
  "sectionGroupsUrl": "string",
  "sectionsUrl": "string",
  "self": "string",
  "userRole": "String"
}

Properties

Property Type Description
createdBy String The user who created the notebook. Read-only.
createdTime DateTimeOffset The date and time when the notebook 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 would look like this: '2014-01-01T00:00:00Z'. Read-only.
id String The unique identifier of the notebook. Read-only.
isDefault Boolean Indicates whether this is the user's default notebook. Read-only.
isShared Boolean Indicates whether the notebook is shared. If true, the contents of the notebook can be seen by people other than the owner. Read-only.
lastModifiedBy String The user who last modified the notebook. Read-only.
lastModifiedTime DateTimeOffset The date and time when the notebook 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 would look like this: '2014-01-01T00:00:00Z'. Read-only.
links NotebookLinks Links for opening the notebook. The oneNoteClientURL link opens the notebook in the OneNote native client if it's installed. The oneNoteWebURL link opens the notebook in OneNote Online.
name String The name of the notebook.
sectionGroupsUrl String The URL for the sectionGroups navigation property, which returns all the section groups in the notebook. Read-only.
sectionsUrl String The URL for the sections navigation property, which returns all the sections in the notebook. Read-only.
self String The endpoint where you can get details about the notebook. Read-only.
userRole String Possible values are: Owner, Contributor, Reader, None. Owner represents owner-level access to the notebook. Contributor represents read/write access to the notebook. Reader represents read-only access to the notebook. Read-only.

Relationships

Relationship Type Description
sectionGroups SectionGroup collection The section groups in the notebook. Read-only. Nullable.
sections Section collection The sections in the notebook. Read-only. Nullable.

Methods

Method Return Type Description
Get notebook Notebook Read the properties and relationships of the notebook.
Create section group SectionGroup Create a section group by posting to the sectionGroups collection in the specified notebook.
List section groups SectionGroup collection Get a collection of section groups in the specified notebook.
Create section Section Create a section by posting to the sections collection in the specified notebook.
List sections Section collection Get a collection of sections in the specified notebook.
copyNotebook None Copies a notebook.