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

# Cancel File Processing

> Cancel an ongoing file upload/processing

Cancel an ongoing file upload or processing job.

## Path Parameter

- `file_id` (string, required)

## Example Request

```bash cURL
curl -X POST "https://api.vidnavigator.com/v1/file/file_abc123/cancel" \
  -H "X-API-Key: YOUR_API_KEY"
```

## Success Response (200 OK)

Returns a confirmation that the file processing has been cancelled.

```json
{
  "status": "success",
  "data": {
    "file_id": "file_abc123",
    "file_name": "processing_video.mp4",
    "message": "File cancelled successfully"
  }
}
```

## OpenAPI

````yaml POST /file/{file_id}/cancel
openapi: 3.0.3
info:
  title: VidNavigator Developer API
  version: 1.0.0
servers:
  - url: https://api.vidnavigator.com/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /file/{file_id}/cancel:
    post:
      summary: Cancel file processing
      description: Cancel an ongoing file upload/processing
      operationId: cancelFileUpload
      tags:
        - Files
      parameters:
        - name: file_id
          in: path
          required: true
          description: The ID of the file to cancel
          schema:
            type: string
      responses:
        "200":
          description: File cancelled successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      file_id:
                        type: string
                      file_name:
                        type: string
                      message:
                        type: string
        "403":
          $ref: "#/components/responses/AccessDenied"
        "404":
          $ref: "#/components/responses/FileNotFound"
        "500":
          $ref: "#/components/responses/InternalServerError"
components:
  responses:
    AccessDenied:
      description: Access denied - insufficient permissions
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - access_denied
              message:
                type: string
    FileNotFound:
      description: File not found
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - file_not_found
              message:
                type: string
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - metadata_fetch_failed
                  - audio_extraction_failed
                  - transcription_failed
                  - internal_server_error
              message:
                type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Include your VidNavigator API key in the X-API-Key header.
````
