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

# Terminate Connector workflow

> Allowed only in `STARTED` status. Session returns to `UPLOADING` after Connector confirms cancellation.



## OpenAPI

````yaml /connector-api/openapi.json post /uploading/{upload_uuid}/terminate
openapi: 3.1.0
info:
  title: Connector API
  version: 0.1.0
servers:
  - url: https://etl-api-dev2.datawiz.io/api/v1
    description: Connector API
security: []
paths:
  /uploading/{upload_uuid}/terminate:
    post:
      tags:
        - Uploading
      summary: Terminate Connector workflow
      description: >-
        Allowed only in `STARTED` status. Session returns to `UPLOADING` after
        Connector confirms cancellation.
      operationId: stop_workflow_api_v1_uploading__upload_uuid__terminate_post
      parameters:
        - name: upload_uuid
          in: path
          required: true
          schema:
            type: string
            title: Upload Uuid
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncOperationResponse'
        '400':
          description: >-
            Upload session not initialized. Body: `{"detail": "Upload session
            not initialized"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '401':
          description: >-
            Invalid or missing access token. Body: `{"detail": "User not
            authenticated"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '403':
          description: >-
            upload_uuid does not match the active session. Body: `{"detail":
            "Invalid upload UUID"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '404':
          description: >-
            Session is not STARTED (`{"detail": "Workflow is not running"}`) or
            Connector could not find the workflow (`{"detail": "Failed to stop
            workflow"}`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '409':
          description: >-
            Connector rejected the terminate request. Body: `{"detail": "Failed
            to stop workflow"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '413':
          description: >-
            Request body exceeds size limit (32 MB for ingest, 1 MB for other
            requests).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '500':
          description: >-
            Connector or internal server error (status forwarded from
            Connector). Body: `{"detail": "Failed to stop workflow"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '502':
          description: >-
            Failed to connect to the Connector service. Body: `{"detail":
            "Failed to connect to Connector service"}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
        '503':
          description: Rate limit or concurrent connection limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDetailResponse'
      security:
        - Authorization: []
          Client-Id: []
components:
  schemas:
    AsyncOperationResponse:
      properties:
        status:
          type: string
          const: started
          title: Status
          description: Operation was accepted and runs asynchronously.
        message:
          type: string
          title: Message
          description: Human-readable result message.
      type: object
      required:
        - status
        - message
      title: AsyncOperationResponse
    ErrorDetailResponse:
      properties:
        detail:
          anyOf:
            - type: string
            - additionalProperties: true
              type: object
          title: Detail
          description: Error message or structured error object.
      type: object
      required:
        - detail
      title: ErrorDetailResponse
    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
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: Authorization
    Client-Id:
      type: apiKey
      in: header
      name: Client-Id

````