← API reference
Mutation / workflows

setActiveVersion

Set the active version of a workflow. Requires workflow:write permission.

Arguments

workflowIdWorkflowID!

Workflow ID

Version ID to set as active (null to unset)

Returns SetActiveVersionPayload!

Explore in a view

Workflow Authoring
View exact SDL
"""
Set the active version of a workflow. Requires workflow:write permission.
"""
setActiveVersion(
  """Workflow ID"""
  workflowId: WorkflowID!
  """Version ID to set as active (null to unset)"""
  versionId: WorkflowVersionID
): SetActiveVersionPayload! @topic(names: ["workflows"])

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