Open Context Protocol is live! 🚀 Read the launch post

createBlogPost

Create blog post

Details

  • Method: POST
  • Path: /blogposts
  • Operation ID: createBlogPost

Parameters

{
  "private": {
    "description": "The blog post will be private. Only the user who creates this blog post will have permission to view and edit one.",
    "required": false,
    "location": "query",
    "type": "boolean"
  }
}

Response Schema

{
  "allOf": [
    {
      "$ref": "#/components/schemas/BlogPostSingle"
    },
    {
      "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('createBlogPost', {
    # Add required parameters here
})