workflow

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!required

  • workflowIdString!required

  • inputSourceSelectorInput

  • input.sourceTargetKindSourceTargetKind

    The source to read; default runtimeTargetKind, else project. One of project, main_branch, environment, preview_branch.

  • input.runtimeTargetKindRuntimeTargetKind

    Used as the source to read when sourceTargetKind is omitted. One of main_branch, environment, preview_branch.

  • input.targetEnvironmentIdID

    Required with the kind environment.

  • input.targetBranchIdID

    Required 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.