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

# Rerun Execution

> Creates a new execution that starts at from_node, reusing the prior execution's upstream node outputs. The new execution is linked to the original via parent_execution_id.



## OpenAPI

````yaml openapi/superflow.yaml POST /executions/{id}/rerun
openapi: 3.0.3
info:
  title: Lyzr SuperFlow API
  version: '1.0'
  description: >-
    SuperFlow orchestration API covering workflow CRUD, the execution lifecycle
    (run, pause, resume, terminate, rerun), scheduling, and human-in-the-loop
    approvals. Chat-completions and agent CRUD endpoints are documented
    separately and are not part of this surface.
servers:
  - url: https://inference.studio.lyzr.ai/api
security:
  - ApiKeyAuth: []
tags:
  - name: workflows
    description: Create, read, update, delete, and share workflow definitions.
  - name: workflow-execution
    description: Run workflows and control the execution lifecycle.
  - name: workflow-schedules
    description: Cron-driven recurring triggers for stored workflows.
  - name: approvals
    description: Human-in-the-loop approval requests raised by running workflows.
paths:
  /executions/{id}/rerun:
    post:
      tags:
        - workflow-execution
      summary: Rerun an execution from a specific node
      description: >-
        Creates a new execution that starts at from_node, reusing the prior
        execution's upstream node outputs. The new execution is linked to the
        original via parent_execution_id.
      operationId: rerunExecution
      parameters:
        - name: id
          in: path
          required: true
          description: Prior execution ID
          schema:
            type: string
      requestBody:
        required: true
        description: Rerun start node
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RerunRequest'
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExecuteResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    RerunRequest:
      type: object
      required:
        - from_node
      properties:
        from_node:
          type: string
          description: >-
            Node name to restart from. Upstream node outputs are reused from the
            prior execution.
          example: summarize_results
    ExecuteResponse:
      type: object
      properties:
        execution_id:
          type: string
          example: exec_5b7d3e
        status:
          type: string
          example: running
        outputs:
          type: object
          description: Final outputs keyed by node, present once the run completes.
          additionalProperties:
            type: object
            additionalProperties:
              type: array
              items:
                $ref: '#/components/schemas/Item'
        node_outputs:
          type: object
          description: Per-node intermediate outputs.
          additionalProperties:
            type: object
            additionalProperties:
              type: array
              items:
                $ref: '#/components/schemas/Item'
        errors:
          type: array
          items:
            type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
    Item:
      type: object
      additionalProperties: {}
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Tenant API key. Required on every endpoint.

````