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

createCommentProperty

Create content property for comment

Details

  • Method: POST
  • Path: /comments/{comment-id}/properties
  • Operation ID: createCommentProperty

Parameters

{
  "comment-id": {
    "description": "The ID of the comment to create a property for.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "key": {
    "description": "Key of the content property",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "value": {
    "description": "Value of the content property.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "ID of the property"
    },
    "key": {
      "type": "string",
      "description": "Key of the property"
    },
    "value": {
      "description": "Value of the property. Must be a valid JSON value."
    },
    "version": {
      "type": "object",
      "properties": {
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the version was created. In format \"YYYY-MM-DDTHH:mm:ss.sssZ\"."
        },
        "message": {
          "type": "string",
          "description": "Message associated with the current version."
        },
        "number": {
          "format": "int32",
          "type": "integer",
          "description": "The version number."
        },
        "minorEdit": {
          "type": "boolean",
          "description": "Describes if this version is a minor version. Email notifications and activity stream updates are not created for minor versions."
        },
        "authorId": {
          "type": "string",
          "description": "The account ID of the user who created this version."
        }
      }
    }
  }
}

Usage

from ocp_agent import OCPAgent

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

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