Update a Data Flow
Most updates to data flow configurations must be done directly with PUT requests on the component resources, such as data_sources, data_sets, and data_sinks. However, the flows API supports several composite operations that can update multiple components of a flow simultaneously.
Composite Flow Operations
The data flows API supports the following composite operations, which cascade across all components of the flow when applicable:
Activate Flow
Activate all components of a flow based on a specific downstream resource or the entire flow.
- Nexla API
PUT /flows/{flow-node-id}/activate
PUT /data_sources/{data-source-id}/flow/activate
PUT /data_sets/{data-set-id}/flow/activate
PUT /data_sinks/{data-sink-id}/flow/activate
Activate entire flow:
PUT /data_sets/{data-set-id}/flow/activate?all=1
PUT /flows/{flow-node-id}/activate?full_tree=1
Pause Flow
Pause all components of a flow from a specific resource downstream, or the entire flow.
- Nexla API
PUT /flows/{flow-node-id}/pause
PUT /data_sources/{data-source-id}/flow/pause
PUT /data_sets/{data-set-id}/flow/pause
PUT /data_sinks/{data-sink-id}/flow/pause
Pause entire flow:
PUT /data_sets/{data-set-id}/flow/pause?all=1
PUT /flows/{flow-node-id}/pause?full_tree=1
Delete Flow
Delete a flow and all its downstream resources, or the entire flow including upstream resources.
- Nexla API
DELETE /flows/{flow-node-id}
DELETE /data_sources/{data-source-id}/flow
DELETE /data_sets/{data-set-id}/flow
DELETE /data_sinks/{data-sink-id}/flow
Delete entire flow:
DELETE /data_sets/{data-set-id}/flow?all=1
DELETE /flows/{flow-node-id}?full_tree=1
Change Ownership
The flows API supports changing the owner and org of all resources composing a flow. This PUT request is supported for Nexla super-users only and allows Nexla admins to set up and test flows in their own accounts on behalf of customers, and then transfer the working flows to the appropriate User and Org.
- Nexla API
PUT /flows/{flow-node-id}
PUT /data_sources/{data-source-id}/flow
PUT /data_sets/{data-set-id}/flow
PUT /data_sinks/{data-sink-id}/flow
Update entire flow:
PUT /data_sets/{data-set-id}/flow?all=1
PUT /flows/{flow-node-id}?full_tree=1
- Nexla API
{
"owner_id": 6,
"org_id": 2,
"include_data_credentials": true,
"include_code_containers": true
}