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

# Detach Files

> Detach one or more files from a case. This removes their association while keeping the file intact. Useful when a file was mistakenly linked or no longer relevant to the case.



## OpenAPI

````yaml POST /files/detach
openapi: 3.0.1
info:
  title: Indora Labs API
  description: >-
    Comprehensive API for search, ingestion, file ops, redaction, detections,
    audit trail, and case management. All endpoints return strongly-typed JSON
    with explicit field descriptions and examples.
  version: 1.0.0
  license:
    name: Proprietary
servers:
  - url: https://api.indoralabs.com
security:
  - apiKeyAuth: []
tags:
  - name: Search
  - name: Uploads
  - name: Files
  - name: Redactions
  - name: Detections
  - name: Cases
  - name: Audit
  - name: Auth
  - name: Embeddings
  - name: Policy
paths:
  /files/detach:
    post:
      tags:
        - Files
      summary: POST /files/detach
      description: >-
        Detach one or more files from a case. This removes their association
        while keeping the file intact. Useful when a file was mistakenly linked
        or no longer relevant to the case.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                caseId:
                  type: string
                  format: uuid
                  description: The case ID to detach files from.
                fileIds:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: List of file IDs to detach.
              required:
                - caseId
                - fileIds
      responses:
        '200':
          description: Files successfully detached from case.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
        '400':
          description: Invalid payload or missing fields.
        '401':
          description: Unauthorized (missing or invalid token).
        '404':
          description: One or more file IDs not found.
        '500':
          description: Internal server error.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````