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

# Bulk cancel runs

> Cancel multiple runs (tasks or workflows) in a single request



## OpenAPI

````yaml /api-reference/openapi.json post /v1/runs/cancel
openapi: 3.1.0
info:
  title: Skyvern API
  description: API for Skyvern
  version: 1.0.0
servers:
  - url: https://api.skyvern.com
    x-fern-server-name: Cloud
  - url: https://api-staging.skyvern.com
    x-fern-server-name: Staging
  - url: http://localhost:8000
    x-fern-server-name: Local
security: []
paths:
  /v1/runs/cancel:
    post:
      tags:
        - Runs
      summary: Bulk cancel runs
      description: Cancel multiple runs (tasks or workflows) in a single request
      operationId: bulk_cancel_runs_v1_runs_cancel_post
      parameters:
        - name: x-api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Skyvern API key for authentication. API key can be found at
              https://app.skyvern.com/settings.
            title: X-Api-Key
          description: >-
            Skyvern API key for authentication. API key can be found at
            https://app.skyvern.com/settings.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkCancelRunsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkCancelRunsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    BulkCancelRunsRequest:
      properties:
        run_ids:
          items:
            type: string
          type: array
          maxItems: 100
          title: Run Ids
          description: List of run IDs to cancel
      type: object
      required:
        - run_ids
      title: BulkCancelRunsRequest
    BulkCancelRunsResponse:
      properties:
        cancelled:
          items:
            type: string
          type: array
          title: Cancelled
          description: Run IDs that were successfully cancelled
        failed:
          items:
            type: string
          type: array
          title: Failed
          description: Run IDs that could not be cancelled
      type: object
      required:
        - cancelled
        - failed
      title: BulkCancelRunsResponse
    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

````