From baed62fb1ced05a61527de2c394c699e97b28fac Mon Sep 17 00:00:00 2001 From: Andrew Tongen Date: Thu, 19 Nov 2026 11:56:07 -0600 Subject: [PATCH] Document tree_version on the workflow details read The details read returns tree_version, an integer that increases whenever a workflow's stored steps change. A change to a field the endpoint withholds now changes tree_version, and so the ETag; the caching section says so. --- source/includes/rest/_workflows.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/includes/rest/_workflows.md b/source/includes/rest/_workflows.md index 98ab46b4b22..38dccc9f313 100644 --- a/source/includes/rest/_workflows.md +++ b/source/includes/rest/_workflows.md @@ -272,6 +272,7 @@ const body = await response.json(); "status": "active", "created_at": "2026-01-04T17:22:03Z", "updated_at": "2026-07-28T14:02:11Z", + "tree_version": 14, "node_count": 9, "details": { "id": "root_1", @@ -397,6 +398,10 @@ In addition to the properties every workflow record carries, the details payload description The description assigned to the workflow. May be empty. + + tree_version + An integer that increases whenever the workflow's stored steps change, whoever changes them. It never decreases, and a value is never reused for different steps. Renaming the workflow or changing its status does not change it. + node_count The number of nodes in the workflow, counting containers. @@ -572,8 +577,8 @@ Responses carry an `ETag` covering every field of the response. Send it back as get a `304 Not Modified` when none of those fields has changed. The `ETag` describes this view of the workflow rather than the workflow's stored definition, so it -is a cache validator only. Two workflows that differ solely in fields this endpoint withholds share -an `ETag`, and a change confined to a withheld field does not invalidate one. +is a cache validator only. A change confined to a field this endpoint withholds still changes +`tree_version`, and so the `ETag`; no withheld value is returned. ### Rate limits