patchContentCommand 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.
The changes to make to a OneNote page in a PATCH request.
JSON representation
The following JSON representation shows the resource type., which is sent in the body of the PATCH pages/{id}` request.
{
"action": "String",
"content": "string",
"position": "String",
"target": "string"
}
Properties
Property | Type | Description |
---|---|---|
action | String | The action to perform on the target element. Possible values are: replace , append , delete , insert , or prepend . |
content | String | A string of well-formed HTML to add to the page, and any image or file binary data. If the content contains binary data, the request must be sent using the multipart/form-data content type with a "Commands" part. |
position | String | The location to add the supplied content, relative to the target element. Possible values are: after (default) or before . |
target | String | The element to update. Must be the #<data-id> or the generated {id} of the element, or the body or title keyword. |