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

# Cancel recording AI field generation

> Cancel a recording AI field generation. The values already generated are kept and the generation ends with the `Failed` status. Canceling a generation that has already ended changes nothing and returns its final status.

Cancels a recording AI field generation. The values already generated are kept and the generation ends with the `Failed` status. Canceling a generation that has already ended changes nothing and returns its final status.


## OpenAPI

````yaml POST /v1/recordings/fields/generations/{generationId}/cancel
openapi: 3.1.0
info:
  title: Claap API
  description: Development documentation
  version: 0.0.0
servers:
  - url: https://api.claap.io/
security:
  - ApiKey: []
paths:
  /v1/recordings/fields/generations/{generationId}/cancel:
    post:
      description: >-
        Cancel a recording AI field generation. The values already generated are
        kept and the generation ends with the `Failed` status. Canceling a
        generation that has already ended changes nothing and returns its final
        status.
      operationId: postV1RecordingsAiFieldsGenerationsByGenerationIdCancel
      parameters:
        - in: path
          name: generationId
          schema:
            type: string
            description: >-
              Generation identifier, as returned by `POST
              /v1/recordings/fields/{fieldId}/generations`
          required: true
      responses:
        '200':
          description: Recording AI field generation was successfully canceled
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    $ref: '#/components/schemas/AiFieldGeneration'
                required:
                  - result
              example:
                result:
                  generationId: CreateInsightsOp#Wd4Kp8Zr2Mx6Qt1Hs9Fb3
                  status: Failed
                  totalCount: 2
                  processedCount: 1
                  failedCount: 0
        '404':
          description: Generation was not found
components:
  schemas:
    AiFieldGeneration:
      type: object
      properties:
        generationId:
          type: string
          description: Generation identifier.
        status:
          type: string
          enum:
            - Pending
            - Ready
            - Failed
          description: >-
            `Pending` while the generation is in progress, `Ready` once it has
            finished, `Failed` when it failed or was canceled. Records that
            failed individually are counted in `failedCount`.
        totalCount:
          type: integer
          description: The number of records the generation processes.
        processedCount:
          type: integer
          description: The number of records processed so far.
        failedCount:
          type: integer
          description: The number of records whose value could not be generated.
      required:
        - generationId
        - status
        - totalCount
        - processedCount
        - failedCount
      description: The status and progress of an AI field generation.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Claap-Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.