Notes.Create
Allows the app to read the titles of OneNote notebooks and sections and to create new pages, notebooks, and sections on behalf of the signed-in user.
Permission Details
Create user OneNote notebooks
Allows the app to read the titles of OneNote notebooks and sections and to create new pages, notebooks, and sections on behalf of the signed-in user.
9d822255-d64d-4b7a-afdb-833b9a97ed02
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
id |
string |
The unique identifier for an entity. Read-only. |
notebooks |
notebook collection |
The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
operations |
onenoteOperation collection |
The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. |
pages |
onenotePage collection |
The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
resources |
onenoteResource collection |
The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. |
sectionGroups |
sectionGroup collection |
The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
sections |
onenoteSection collection |
The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"notebooks": [
{
"@odata.type": "microsoft.graph.notebook"
}
],
"operations": [
{
"@odata.type": "microsoft.graph.onenoteOperation"
}
],
"pages": [
{
"@odata.type": "microsoft.graph.onenotePage"
}
],
"resources": [
{
"@odata.type": "microsoft.graph.onenoteResource"
}
],
"sectionGroups": [
{
"@odata.type": "microsoft.graph.sectionGroup"
}
],
"sections": [
{
"@odata.type": "microsoft.graph.onenoteSection"
}
]
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
notebooks |
notebook collection |
The collection of OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
operations |
onenoteOperation collection |
The status of OneNote operations. Getting an operations collection isn't supported, but you can get the status of long-running operations if the Operation-Location header is returned in the response. Read-only. Nullable. |
pages |
onenotePage collection |
The pages in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
resources |
onenoteResource collection |
The image and other file resources in OneNote pages. Getting a resources collection isn't supported, but you can get the binary content of a specific resource. Read-only. Nullable. |
sectionGroups |
sectionGroup collection |
The section groups in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
sections |
onenoteSection collection |
The sections in all OneNote notebooks that are owned by the user or group. Read-only. Nullable. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new Notebook
{
DisplayName = "My Private notebook",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Me.Onenote.Notebooks.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const notebook = {
displayName: 'My Private notebook'
};
await client.api('/me/onenote/notebooks')
.post(notebook);
Import-Module Microsoft.Graph.Notes
$params = @{
displayName = "My Private notebook"
}
# A UPN can also be used as -UserId.
New-MgUserOnenoteNotebook -UserId $userId -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.notebook import Notebook
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = Notebook(
display_name = "My Private notebook",
)
result = await graph_client.me.onenote.notebooks.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for Notes.Create
Grant Admin Consent
Users can consent to this permission during sign-in.