post:
  x-eov-operation-id: retryExecution
  x-eov-operation-handler: v1/handlers/executions/executions.handler
  tags:
    - Execution
  summary: Retry an execution
  description: Retry an execution from your instance.
  parameters:
    - $ref: '../schemas/parameters/executionId.yml'
  requestBody:
    required: false
    content:
      application/json:
        schema:
          type: object
          properties:
            loadWorkflow:
              type: boolean
              description: Whether to load the currently saved workflow to execute instead of the one saved at the time of the execution. If set to true, it will retry with the latest version of the workflow.
  responses:
    '200':
      description: Operation successful.
      content:
        application/json:
          schema:
            $ref: '../schemas/execution.yml'
    '401':
      $ref: '../../../../shared/spec/responses/unauthorized.yml'
    '404':
      $ref: '../../../../shared/spec/responses/notFound.yml'
    '409':
      $ref: '../../../../shared/spec/responses/conflict.yml'
