Read one task definition by its ID to inspect its target, input and output schemas and whether it can be scheduled; returns the task. Requires project.runs.read.
Arguments
projectReferenceString!requiredtaskIdString!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 Task($projectReference: String!, $taskId: String!) { task(projectReference: $projectReference, taskId: $taskId) { id name description target sourcePath editMode inputSchema outputSchema schedulable }}{ "data": { "task": { "id": "string", "name": "string", "description": "string", "target": "string", "sourcePath": "string", "editMode": "structured", "inputSchema": {}, "outputSchema": {}, "schedulable": false } }}The Task! in data.task.