UpsertJourneyInput
Authoring input for upsertJourney: create a journey, or overwrite the open draft of the journey whose handle matches the definition's id.
Fields
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.
Possible values (3)
PERSONALOwned by one user and visible only to them. Self-service: authoring it needs journey:personal rather than journey:write, and journey:write is not a backdoor into someone else's personal journey.
TEAMOffered to the members of the teams it is assigned to; at least one team is required. Authoring it needs journey:write.
INSTANCEOffered to everyone in the tenant whose permissions cover its requiredDomains. The default scope when none is given, and what bundled journeys use; authoring it needs 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.
Referenced by (1)
Exact type 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!]
}