Skip to main content
POST
/
instructor
/
executions
/
runBlocks
Run sequence of blocks
curl --request POST \
  --url https://api.kaizenautomation.com/instructor/executions/runBlocks \
  --header 'Content-Type: application/json' \
  --data '{
  "startBlockName": "<string>",
  "endBlockName": "<string>",
  "params": {},
  "instructorExecutionId": "<string>",
  "excludeChildren": true
}'
{
  "success": true,
  "result": "<any>",
  "sessionContext": {},
  "sessionContextTimestamp": 123,
  "durationMs": 123
}

Body

application/json
  • Option 1
  • Option 2
startBlockName
string
required

Name of the block to start execution from

endBlockName
string
required

Name of the block to end execution at

params
object
required
instructorExecutionId
string
required

ID of the instructor execution context

excludeChildren
boolean
required

Whether to exclude children blocks

Response

Blocks executed successfully

  • Option 1
  • Option 2
success
boolean
required
sessionContext
object
required
sessionContextTimestamp
number
required

Context capture time (UNIX timestamp)

durationMs
number
required

The duration of the execution in milliseconds.

result
any

The result of the last block in the sequence

I