Update workflow component
Updates a workflow component’s component_data (nodes, edges, vault schema). Creates a new version of the component.
Propagation: By default, all workflows in the workspace that contain instances of this component are automatically updated to reflect the new template. Set propagate: false to skip propagation.
Multiple instances per workflow are supported — each paste-instance is tracked by its own source_component_instance_id and updated independently.
sourceWorkflowId (advanced): Skips propagation for the entire workflow with the given id. The frontend uses this when a single instance was edited locally and saved back to the library — the editor already reflects the new structure, so re-propagating to the same workflow would be redundant. Caveat for multi-instance workflows: the skip is workflow-scoped, not instance-scoped. If the source workflow contains other instances of this component that were not part of the local edit, those instances will not be updated and will go stale. Pass sourceWorkflowId only when the source workflow contains exactly one instance of the component, or when every instance in it is already in sync with the new componentData. If unsure, omit sourceWorkflowId and let propagation update everything.
Typical usage:
GET /workflow-components/{component_id}/usageto see affected workflowsGET /workflow-components/{component_id}to fetch the current component- Modify
componentDataas needed PUT /workflow-components/{component_id}to save and propagate
Authorizations
API key-based authentication. Provide your CloudCruise API key in the cc-key header.
Headers
CloudCruise API key for authentication
Path Parameters
The ID of the workflow component to update
Body
Payload for updating a workflow component's data. Creates a new version and (by default) propagates changes to every workflow in the workspace that contains instances of this component.
Structural payload for a workflow component — the nodes, edges, and vault schema that compose it. Mirrors the shape used by the workflow visualizer.
Optional note describing what changed in this version
500"Fixed login XPath"
If true (default), updates every workflow in the workspace that embeds this component to reflect the new structure. Set to false to save the new version without touching any workflows.
If the update originates from a workflow editor, pass that workflow's id here to skip it during propagation. Workflow-scoped, not instance-scoped — the entire workflow is skipped, including any other instances of this component in it. Use only when the source workflow contains exactly one instance of the component, or when every instance is already in sync with the new componentData. Otherwise omit and let propagation update everything.
Response
Component updated. Returns the new version number.
The version number of the newly-created component version
x >= 1
