Can't able to create new Page in Onenote using Graph api

%3CLINGO-SUB%20id%3D%22lingo-sub-1439181%22%20slang%3D%22en-US%22%3ECan't%20able%20to%20create%20new%20Page%20in%20Onenote%20using%20Graph%20api%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1439181%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3CSPAN%3EI%26nbsp%3B%3C%2FSPAN%3Eam%20using%20the%20Microsoft%20Graph%20API%2C%20and%20I'm%20trying%20to%20create%20a%20oneNote%20page%20from%20Graph%20explorer.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAPI%20%3APost%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%2F%7BgroupID%7D%2FoneNote%2Fsections%2F%7BsectionId%7D%2Fpages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fbeta%2Fgroups%2F%7BgroupID%7D%2FoneNote%2Fsections%2F%7BsectionId%7D%2Fpages%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22hljs-attribute%22%3EContent-type%3C%2FSPAN%3E%3CSPAN%3E%3A%20text%2Fhtml%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20tried%20the%20below%20example%20to%20create%20a%20new%20page%2C%20the%20sample%20query%20is%20unresponsive.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsection-post-pages%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fsection-post-pages%3Fview%3Dgraph-rest-1.0%3C%2FA%3E%3C%2FP%3E%3CP%3Etried%20without%20Html%20content(unresponsive).%3C%2FP%3E%3CP%3EGet%20Query%20for%20above%20api%20is%20working%20fine.(i.e%20groupID%20and%20sectionId%20is%20Correct).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

 I am using the Microsoft Graph API, and I'm trying to create a oneNote page from Graph explorer.

 

API :Post

https://graph.microsoft.com/beta/groups/{groupID}/oneNote/sections/{sectionId}/pages

Content-type: text/html

I tried the below example to create a new page, the sample query is unresponsive.

https://docs.microsoft.com/en-us/graph/api/section-post-pages?view=graph-rest-1.0

tried without Html content(unresponsive).

Get Query for above api is working fine.(i.e groupID and sectionId is Correct).

 

0 Replies