API Reference
Get a job task's YAML (override or pinned version)
GET
/api/jobs/{id}/tasks/{taskKey}/yaml
Returns the YAML used to edit a task within a job. If a per-job override exists for the DAG node key, its YAML is returned (is_overridden: true); otherwise the pinned task_versions row YAML is returned. Admin only.
Operation IDgetJobTaskYaml
Authentication
- BearerAuth
http bearerAPI key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.
Path parameters
idintegerrequiredResource ID
taskKeystringrequiredSuccess response body
200Task YAML for the job DAG node
Task YAML for the job DAG node
Content typeapplication/json
responseobject5 properties
task_keystringtask_namestringbase_versioninteger | nullyaml_contentstringis_overriddenbooleanError responses
400Job has no snapshotted YAML, the snapshot fails to parse, or task_versions_snapshot is corrupt
Job has no snapshotted YAML, the snapshot fails to parse, or task_versions_snapshot is corrupt
Content typeapplication/json
responseobject2 properties
errorstringmessagestring404Resource not found
Resource not found
Content typeapplication/json
responseobject2 properties
errorstringmessagestringExample response
{
"error": "NOT_FOUND",
"message": "Resource not found"
}