Open Context Protocol is live! 🚀 Read the launch post
getPageVersionDetails

getPageVersionDetails

Get version details for page version

Details

  • Method: GET
  • Path: /pages/{page-id}/versions/{version-number}
  • Operation ID: getPageVersionDetails

Parameters

{
  "page-id": {
    "description": "The ID of the page for which version details should be returned.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "version-number": {
    "description": "The version number of the page to be returned.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "number": {
      "format": "int32",
      "type": "integer",
      "description": "The current version number."
    },
    "authorId": {
      "type": "string",
      "description": "The account ID of the user who created this version."
    },
    "message": {
      "type": "string",
      "description": "Message associated with the current version."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the version was created. In format \"YYYY-MM-DDTHH:mm:ss.sssZ\"."
    },
    "minorEdit": {
      "type": "boolean",
      "description": "Describes if this version is a minor version. Email notifications and activity stream updates are not created for minor versions."
    },
    "contentTypeModified": {
      "type": "boolean",
      "description": "Describes if the content type is modified in this version (e.g. page to blog)"
    },
    "collaborators": {
      "type": "array",
      "description": "The account IDs of users that collaborated on this version.",
      "items": {
        "type": "string"
      }
    },
    "prevVersion": {
      "format": "int32",
      "type": "integer",
      "description": "The version number of the version prior to this current content update."
    },
    "nextVersion": {
      "format": "int32",
      "type": "integer",
      "description": "The version number of the version after this current content update."
    }
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('confluence')

# Call this tool
result = await agent.call_tool('getPageVersionDetails', {
    # Add required parameters here
})