createPage
Create page
Details
- Method:
POST - Path:
/pages - Operation ID:
createPage
Parameters
{
"embedded": {
"description": "Tag the content as embedded and content will be created in NCS.",
"required": false,
"location": "query",
"type": "boolean"
},
"private": {
"description": "The page will be private. Only the user who creates this page will have permission to view and edit one.",
"required": false,
"location": "query",
"type": "boolean"
},
"root-level": {
"description": "The page will be created at the root level of the space (outside the space homepage tree). If true, then a \nvalue may not be supplied for the `parentId` body parameter.",
"required": false,
"location": "query",
"type": "boolean"
}
}Response Schema
{
"allOf": [
{
"$ref": "#/components/schemas/PageSingle"
},
{
"type": "object",
"properties": {
"_links": {
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Base url of the Confluence site."
}
}
}
}
}
]
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('confluence')
# Call this tool
result = await agent.call_tool('createPage', {
# Add required parameters here
})