getWorkflowSchemeUsagesForWorkflow
Get workflow schemes which are using a given workflow
Details
- Method:
GET - Path:
/rest/api/3/workflow/{workflowId}/workflowSchemes - Operation ID:
getWorkflowSchemeUsagesForWorkflow
Parameters
{
"workflowId": {
"description": "The workflow ID",
"required": true,
"location": "path",
"type": "string"
},
"nextPageToken": {
"description": "The cursor for pagination",
"required": false,
"location": "query",
"type": "string"
},
"maxResults": {
"description": "The maximum number of results to return. Must be an integer between 1 and 200.",
"required": false,
"location": "query",
"type": "integer",
"format": "int32"
}
}Response Schema
{
"additionalProperties": false,
"description": "Workflow schemes using the workflow.",
"properties": {
"workflowId": {
"description": "The workflow ID.",
"type": "string"
},
"workflowSchemes": {
"additionalProperties": false,
"description": "A page of workflow schemes.",
"properties": {
"nextPageToken": {
"description": "Token for the next page of issue type usages.",
"type": "string"
},
"values": {
"description": "The list of workflow schemes.",
"items": {
"additionalProperties": false,
"description": "The worflow scheme.",
"properties": {
"id": {
"description": "The workflow scheme ID.",
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getWorkflowSchemeUsagesForWorkflow', {
# Add required parameters here
})