getDraftDefaultWorkflow
Get draft default workflow
Details
- Method:
GET - Path:
/rest/api/3/workflowscheme/{id}/draft/default - Operation ID:
getDraftDefaultWorkflow
Parameters
{
"id": {
"description": "The ID of the workflow scheme that the draft belongs to.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
}
}Response Schema
{
"additionalProperties": false,
"description": "Details about the default workflow.",
"properties": {
"updateDraftIfNeeded": {
"description": "Whether a draft workflow scheme is created or updated when updating an active workflow scheme. The draft is updated with the new default workflow. Defaults to `false`.",
"type": "boolean"
},
"workflow": {
"description": "The name of the workflow to set as the default workflow.",
"type": "string"
}
},
"required": [
"workflow"
],
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getDraftDefaultWorkflow', {
# Add required parameters here
})