Open Context Protocol is live! 🚀 Read the launch post

deleteVersion

Delete version

Details

  • Method: DELETE
  • Path: /rest/api/3/version/{id}
  • Operation ID: deleteVersion

Parameters

{
  "id": {
    "description": "The ID of the version.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "moveFixIssuesTo": {
    "description": "The ID of the version to update `fixVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "moveAffectedIssuesTo": {
    "description": "The ID of the version to update `affectedVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted.",
    "required": false,
    "location": "query",
    "type": "string"
  }
}

Usage

from ocp_agent import OCPAgent

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

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