getBlogPostVersionDetails
Get version details for blog post version
Details
- Method:
GET - Path:
/blogposts/{blogpost-id}/versions/{version-number} - Operation ID:
getBlogPostVersionDetails
Parameters
{
"blogpost-id": {
"description": "The ID of the blog post for which version details should be returned.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"version-number": {
"description": "The version number of the blog post 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('getBlogPostVersionDetails', {
# Add required parameters here
})