Execute a Circuit
The sample code below illustrates executing a circuit by referring to its unique circuit ID and passing key-value pairs as the input to the circuit in the form of a dictionary.
The circuit reference used below is already defined in the component instance page.
copy
#Execute a circuit
result = circuit.execute(5249000000108030, name="Test_Circuit")
A sample response is shown below :
copy
{
id: "5249000000108030",
name: "Test_Circuit",
start_time: "Aug 18, 2021 07:35 PM",
status: "running",
status_code: 1,
execution_meta: {},
circuit_details: {
name: "Test_Circuit",
ref_name: "testcircuit",
description: "",
instance_id: "70454fc5-3bf6-45af-81ca-2742cc049698"
},
input: { name: "Aaron Jones" }
}
Yes
No
Send your feedback to us
Skip
Submit