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

# Stop execution

> Gracefully stop a running execution and mark it as completed.

Unlike abort, this marks the execution as 'completed' rather than 'aborted'.
Use this for interactive workloads like notebooks where stopping is a normal
end-of-session action, not a cancellation.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v2/external/workloads/stop/{execution_id}
openapi: 3.1.0
info:
  title: Lyceum Cloud Execution API
  version: 0.1.0
servers: []
security: []
paths:
  /api/v2/external/workloads/stop/{execution_id}:
    post:
      tags:
        - Executions
      summary: Stop execution
      description: >-
        Gracefully stop a running execution and mark it as completed.


        Unlike abort, this marks the execution as 'completed' rather than
        'aborted'.

        Use this for interactive workloads like notebooks where stopping is a
        normal

        end-of-session action, not a cancellation.
      operationId: stop_execution_api_v2_external_workloads_stop__execution_id__post
      parameters:
        - name: execution_id
          in: path
          required: true
          schema:
            type: string
            title: Execution Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    StopResponse:
      properties:
        execution_id:
          type: string
          title: Execution Id
        status:
          type: string
          title: Status
        message:
          type: string
          title: Message
      type: object
      required:
        - execution_id
        - status
        - message
      title: StopResponse
      description: Response model for stop execution endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````