← API reference
CANONICAL TYPE REFERENCE

CreateJourneyInput

Input for createJourney: always creates a fresh journey (there is no id to look up), leaving it with a single unpublished draft version.

sourceString!

Author-owned cococo-journey-source/1 JSON envelope containing sourceXML. Compiled JSON is server-owned.

Distribution scope of the new journey. Defaults to INSTANCE when omitted. PERSONAL (owned by the caller) is self-service; TEAM/INSTANCE requires journey:write.

Team TypeIDs (prefix tea) to assign when scope is TEAM; at least one is required then, and each must belong to the caller's tenant. Ignored otherwise.

View exact SDL
"""
Input for `createJourney`: always creates a fresh journey (there is no id to look up), leaving it with a single unpublished draft version.
"""
input CreateJourneyInput {
  """
  Author-owned cococo-journey-source/1 JSON envelope containing sourceXML. Compiled JSON is server-owned.
  """
  source: String!
  """
  Distribution scope of the new journey. Defaults to INSTANCE when omitted. PERSONAL (owned by the caller) is self-service; TEAM/INSTANCE requires journey:write.
  """
  scope: JourneyScope
  """
  Team TypeIDs (prefix `tea`) to assign when `scope` is TEAM; at least one is required then, and each must belong to the caller's tenant. Ignored otherwise.
  """
  teamIds: [TeamID!]
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.