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

# Cancel Scorecard

> Cancel active queued or running scorecard work for a table sheet.

Cancel active queued or running scorecard work for a sheet.

The endpoint targets the latest active run. It does not take `calculation_id`; pass optional `row_indices` and `step_ids` to scope cancellation.


## OpenAPI

````yaml POST /api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/cancel
openapi: 3.1.0
info:
  title: PromptLayer API
  description: >-
    REST API for PromptLayer: prompt template management, request logging,
    observability, evaluations, and workflows.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/cancel:
    post:
      tags:
        - tables
      summary: Cancel Table Sheet Scorecard
      description: Cancel active queued or running scorecard work for a table sheet.
      operationId: cancelTableSheetScorecard
      parameters:
        - name: X-API-KEY
          in: header
          required: true
          schema:
            type: string
          description: >-
            Your PromptLayer API key. The key's workspace scopes table resources
            for this request.
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Table ID.
        - name: sheet_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Table sheet ID.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelTableSheetScorecardRequest'
      responses:
        '200':
          description: Cancellation attempted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelTableSheetScorecardResponse'
        '400':
          description: Invalid cancellation request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Table or sheet not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    CancelTableSheetScorecardRequest:
      type: object
      properties:
        row_indices:
          type: array
          items:
            type: integer
            minimum: 0
        step_ids:
          type: array
          items:
            type: string
            format: uuid
      additionalProperties: false
    CancelTableSheetScorecardResponse:
      type: object
      required:
        - success
        - message
        - scorecard
        - cancelled_count
        - execution_ids
        - calculation_id
      properties:
        success:
          type: boolean
        message:
          type: string
        scorecard:
          type: object
          required:
            - id
          properties:
            id:
              type: string
              format: uuid
          additionalProperties: true
        cancelled_count:
          type: integer
        execution_ids:
          type: array
          items:
            type: string
        calculation_id:
          type: string
          format: uuid
          nullable: true
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````