> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kaizenautomation.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run single block

> Executes a single block by ID or name within an instructor execution context. Provide either blockId or blockName to identify the block.



## OpenAPI

````yaml post /instructor/executions/runBlock
openapi: 3.1.0
info:
  title: Kaizen API
  version: 1.0.0
  description: API for the Kaizen Automation Platform
servers:
  - url: https://api.kaizenautomation.com
    description: Production server
security: []
paths:
  /instructor/executions/runBlock:
    post:
      tags:
        - Instructor
      summary: Run single block
      description: >-
        Executes a single block by ID or name within an instructor execution
        context. Provide either blockId or blockName to identify the block.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                blockId:
                  type: string
                  description: ID of the block to execute
                blockName:
                  type: string
                  description: Name of the block to execute
                params:
                  type: object
                  additionalProperties: {}
                instructorExecutionId:
                  type: string
                  description: ID of the instructor execution context
              required:
                - params
                - instructorExecutionId
        required: true
      responses:
        '200':
          description: Block executed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    description: Result of the block execution
                  sessionContext:
                    type: object
                    additionalProperties: {}
                  sessionContextTimestamp:
                    type: number
                    description: Context capture time (UNIX timestamp)
                required:
                  - sessionContext
                  - sessionContextTimestamp
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '404':
          description: Block or execution not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error

````