Read one workflow definition by its ID to inspect its target, version, input and output schemas and whether it can be scheduled; returns the workflow. Requires project.runs.read.
Arguments
projectReferenceString!requiredworkflowIdString!requiredinputSourceSelectorInputinput.sourceTargetKindSourceTargetKindThe source to read; default runtimeTargetKind, else project. One of
project,main_branch,environment,preview_branch.input.runtimeTargetKindRuntimeTargetKindUsed as the source to read when sourceTargetKind is omitted. One of
main_branch,environment,preview_branch.input.targetEnvironmentIdIDRequired with the kind environment.
input.targetBranchIdIDRequired with the kind preview_branch.
Responses
query Workflow($projectReference: String!, $workflowId: String!) { workflow(projectReference: $projectReference, workflowId: $workflowId) { id name description target sourcePath editMode version inputSchema outputSchema schedulable }}{ "data": { "workflow": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "editMode": "structured", "version": "string", "inputSchema": {}, "outputSchema": {}, "schedulable": false } }}The Workflow! in data.workflow.