Start typing to search.

API Reference

Get a job task's YAML (override or pinned version)

View Markdown
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 bearer·API key token (envoy_<hex>). Create keys from Settings → API Keys — see Using the API.

Path parameters

idintegerrequired

Resource ID

taskKeystringrequired

Success response body

200Task YAML for the job DAG node

Task YAML for the job DAG node

Content typeapplication/json

responseobject
5 properties
task_keystring
task_namestring
base_versioninteger | null
yaml_contentstring
is_overriddenboolean

Error 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

responseobject
2 properties
errorstring
messagestring

404Resource not found

Resource not found

Content typeapplication/json

responseobject
2 properties
errorstring
messagestring
Example response
{
  "error": "NOT_FOUND",
  "message": "Resource not found"
}