Appearance
JourneyVersion
Type: Object
One immutable-once-published snapshot of a journey definition. The authoring history returned by listJourneyVersions.
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| createdAt | ISO8601! | ISO-8601 timestamp of when this version was first opened as a draft; publishing does not change it. | ||
| definition | String! | The journey definition as a verbatim JSON document (spec schema 2) — the author's exact bytes, validated at write time against journey.schema.json and the live GraphQL schema, but stored unmodified. | ||
| id | JourneyVersionID! | TypeID of this version (prefix jnv, e.g. "jnv_01K…"). | ||
| journeyId | JourneyID! | TypeID of the journey this version belongs to (prefix jny). | ||
| status | JourneyStatus! | DRAFT while the version is editable and never served to runners; PUBLISHED once publishJourney promotes it, after which it is immutable. Several DRAFT versions may be open at once — editing a journey amends the newest, while createJourneyVersion always mints another — and publishing promotes the one it names, leaving the rest open. | ||
| version | Int! | Monotonic version number within the journey, starting at 1. A new draft takes the next number; re-saving an open draft overwrites it in place, so numbers are not consumed per edit. |