Update Workflow
updateWorkflow Mutation
Updates an existing Workflow definition in the system with new data.
Arguments
id
ID!
The unique identifier of the workflow to update
input
UpdateWorkflowInput!
Input data for updating the workflow
Return Type
Workflow - The updated workflow definition.
Input Fields
UpdateWorkflowInput:
dataTypeID
UUID
Optional data type ID to associate with the workflow
clearDataTypeID
Boolean
Clear the existing data type ID
dataTypeSlug
String
Optional data type slug
clearDataTypeSlug
Boolean
Clear the existing data type slug
data
Map
Custom data associated with the workflow
clearData
Boolean
Clear the existing custom data
name
String
Name of the workflow
active
Boolean
Whether the workflow is active and can be triggered
filterRule
String
Filter rule to determine when this workflow should be triggered
clearFilterRule
Boolean
Clear the existing filter rule
addWorkflowSignalIDs
[ID!]
IDs of workflow signals to add to this workflow
removeWorkflowSignalIDs
[ID!]
IDs of workflow signals to remove from this workflow
clearWorkflowSignals
Boolean
Clear all associated workflow signals
Usage Example
JavaScript Example
Important Notes
Updating a workflow may affect running workflow instances depending on the changes
Use the clear flags to explicitly remove optional fields
The
datafield supports flexible JSON structures for workflow configurationChanges to the
filterRulewill affect when the workflow is triggered in the futureDeactivating a workflow (
active: false) will prevent new instances from startingWorkflow signal associations can be managed incrementally using add/remove operations
Consider the impact on existing workflow instances when making significant changes
Last updated
Was this helpful?
