← API reference
CANONICAL TYPE REFERENCE

UpsertJourneyInput

Authoring input for upsertJourney: create a journey, or overwrite the open draft of the journey whose handle matches the definition's id.

sourceString!

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

Distribution scope of the resulting journey. Omitted keeps the existing journey's scope, or defaults to INSTANCE on create. PERSONAL (owned by the caller) is self-service; TEAM/INSTANCE requires journey:write.

Team TypeIDs (prefix tea) to assign when the resulting scope is TEAM; at least one is required then, and each must belong to the caller's tenant. Always fully replaces the journey's assignments — omitting it clears them. Ignored for PERSONAL / INSTANCE.

View exact SDL
"""
Authoring input for `upsertJourney`: create a journey, or overwrite the open draft of the journey whose handle matches the definition's `id`.
"""
input UpsertJourneyInput {
  """
  Author-owned cococo-journey-source/1 JSON envelope containing sourceXML. Compiled JSON is server-owned.
  """
  source: String!
  """
  Distribution scope of the resulting journey. Omitted keeps the existing journey's scope, or defaults to INSTANCE on create. PERSONAL (owned by the caller) is self-service; TEAM/INSTANCE requires journey:write.
  """
  scope: JourneyScope
  """
  Team TypeIDs (prefix `tea`) to assign when the resulting scope is TEAM; at least one is required then, and each must belong to the caller's tenant. Always fully replaces the journey's assignments — omitting it clears them. Ignored for PERSONAL / INSTANCE.
  """
  teamIds: [TeamID!]
}

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