Apps & SurfacesMu Mutation

publishJourney

Topics: Surfaces

Promote a named draft version of a journey to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else journey:write.

Returns

JourneyPayload!

Arguments

id

JourneyID!Required

TypeID of the journey to publish (prefix jny).

TypeID of the draft version to promote (prefix jnv). Fails with a field error when the version is unknown, belongs to another journey, or is not an open draft.

Exact field SDL
"""
Promote a named draft version of a journey to the live published version. Other open drafts are left untouched. Owner for PERSONAL, else journey:write.
"""
publishJourney(
  """TypeID of the journey to publish (prefix `jny`)."""
  id: JourneyID!
  """
  TypeID of the draft version to promote (prefix `jnv`). Fails with a field error when the version is unknown, belongs to another journey, or is not an open draft.
  """
  versionId: JourneyVersionID!
): JourneyPayload! @topic(names: ["surfaces"])

Declared on Mutation. Access is checked by the platform for each operation.