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

# Cancel Operation

> Cancel an ingest operation

<Info>
  **Product**: Video Datalake
  **Host**: `https://api.memories.ai/datalake/v1`
  **Auth**: `Authorization: sk-mai-...`
</Info>

Cancel an ingest operation, but only while `index` has not started → `200` (`cancelled=true`); otherwise `409`. Cancellation does **not** fire the webhook.

<Note>
  **Custom method `:cancel`** — this is an action on the resource, not standard CRUD. Call it exactly as `POST /datalake/v1/operations/{id}:cancel`.
</Note>

<Note>
  **Pricing:** Free — management / read (no charge). · See [Pricing](/datalake/pricing) for the full model.
</Note>

## Response Fields

<ResponseField name="cancelled" type="boolean">`true` when the cancel succeeded.</ResponseField>


## OpenAPI

````yaml POST /datalake/v1/operations/{id}:cancel
openapi: 3.1.0
info:
  title: Memories.ai DataLake API 2.0
  version: 2026-08
  description: OpenAPI mapping used by Mintlify Try it for the DataLake API 2.0 docs.
servers:
  - url: https://api.memories.ai
security:
  - ApiKeyAuth: []
paths:
  /datalake/v1/operations/{id}:cancel:
    post:
      tags:
        - Operations & Usage
      summary: Cancel an ingest operation
      description: >-
        Cancel an ingest operation, but only while `index` has not started →
        `200` (`cancelled=true`); otherwise `409`. Cancellation does **not**
        fire the webhook.
      operationId: cancel_operation
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Operation ID.
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                operation: op_xxx
                cancelled: true
                done: true
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Send `Authorization: sk-mai-...`'

````