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

publishDraftWorkflowScheme

Publish draft workflow scheme

Details

  • Method: POST
  • Path: /rest/api/3/workflowscheme/{id}/draft/publish
  • Operation ID: publishDraftWorkflowScheme

Parameters

{
  "id": {
    "description": "The ID of the workflow scheme that the draft belongs to.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "validateOnly": {
    "description": "Whether the request only performs a validation.",
    "required": false,
    "location": "query",
    "type": "boolean"
  },
  "statusMappings": {
    "description": "Mappings of statuses to new statuses for issue types.",
    "required": false,
    "location": "body",
    "type": "array"
  }
}

Usage

from ocp_agent import OCPAgent

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

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