> ## 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.

# Update Collection

> Update a collection

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

Change `name`, `metadata`, `enabled_detectors`, `face_recognition_enabled`, `reid_threshold`, or `person_threshold`. Detector changes only affect videos submitted *afterward* (queued as a snapshot).

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

## Response Fields

<ResponseField name="id" type="string">Collection ID.</ResponseField>


## OpenAPI

````yaml PATCH /datalake/v1/collections/{id}
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/collections/{id}:
    patch:
      tags:
        - Collections
      summary: Update a collection
      description: >-
        Change `name`, `metadata`, `enabled_detectors`,
        `face_recognition_enabled`, `reid_threshold`, or `person_threshold`.
        Detector changes only affect videos submitted *afterward* (queued as a
        snapshot).
      operationId: update_collection
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Collection ID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                metadata:
                  type: object
                enabled_detectors:
                  type: array
                  items:
                    type: string
                    enum:
                      - safety_detector
                face_recognition_enabled:
                  type: boolean
                reid_threshold:
                  type: number
                person_threshold:
                  type: number
              example:
                face_recognition_enabled: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                id: col_xxx
                name: my-set
                face_recognition_enabled: true
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: 'Send `Authorization: sk-mai-...`'

````