← API reference
Mutation / workflows

createWorkflowVersionFromSource

Create an immutable workflow version from XML; validation is shared with all authoring paths. Does not activate it.

Arguments

Parent workflow and XML source to compile, validate and save as a new version

Returns WorkflowVersionSourcePayload!

Explore in a view

Workflow Authoring
View exact SDL
"""
Create an immutable workflow version from XML; validation is shared with all authoring paths. Does not activate it.
"""
createWorkflowVersionFromSource(
  """
  Parent workflow and XML source to compile, validate and save as a new version
  """
  input: CreateWorkflowVersionFromSourceInput!
): WorkflowVersionSourcePayload! @topic(names: ["workflows"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.