addTableToPage
Insert structured table data into a OneNote page using CSV format, specifying the page ID, optional title, and position (top or bottom) for precise placement.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
pageId | Yes | The ID of the page to add a table to. | |
position | No | Position to add the table (top or bottom). | bottom |
tableData | Yes | Table data in CSV format (header row, then data rows). | |
title | No | Optional title for the table. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"pageId": {
"description": "The ID of the page to add a table to.",
"type": "string"
},
"position": {
"default": "bottom",
"description": "Position to add the table (top or bottom).",
"enum": [
"top",
"bottom"
],
"type": "string"
},
"tableData": {
"description": "Table data in CSV format (header row, then data rows).",
"type": "string"
},
"title": {
"description": "Optional title for the table.",
"type": "string"
}
},
"required": [
"pageId",
"tableData"
],
"type": "object"
}