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

# Update Collection

> Update metadata for a collection by ID.
Use this endpoint to rename a collection by setting `title`.
This endpoint updates only provided fields (`title`, `description`) and leaves omitted fields unchanged.
For read-only retrieval, use `GET /v2/collections/{collection_id}`.



## OpenAPI

````yaml PATCH /v2/collections/{collection_id}
openapi: 3.1.0
info:
  title: Mem API
  description: An API that allows you to interact with the Mem platform.
  version: 1.0.0
servers:
  - url: https://api.mem.ai
security:
  - bearerAuth: []
paths:
  /v2/collections/{collection_id}:
    patch:
      tags:
        - external
        - external-v2
      summary: Update Collection
      description: >-
        Update metadata for a collection by ID.

        Use this endpoint to rename a collection by setting `title`.

        This endpoint updates only provided fields (`title`, `description`) and
        leaves omitted fields unchanged.

        For read-only retrieval, use `GET /v2/collections/{collection_id}`.
      operationId: app_src_api_routes_external_v2_collections_views_update_collection
      parameters:
        - in: path
          name: collection_id
          schema:
            description: >-
              UUID of the collection to update. Use an ID returned by
              create/list/search. The caller must be able to edit this
              collection.
            format: uuid
            title: Collection Id
            type: string
          required: true
          description: >-
            UUID of the collection to update. Use an ID returned by
            create/list/search. The caller must be able to edit this collection.
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCollectionRequestSchema'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateCollectionResponseSchema'
      x-codeSamples:
        - lang: bash
          label: cURL
          source: >-
            curl
            "https://api.mem.ai/v2/collections/01961d40-7a67-7049-a8a6-d5638cbaaeb9"
            \
                 --header "Content-Type: application/json" \
                 --header "Authorization: Bearer $MEM_API_KEY" \
                 --request PATCH \
                 --data '{
                     "title": "Acme Corp - 2026",
                     "description": "Collection for 2026 Acme planning and execution notes."
                 }'
components:
  schemas:
    UpdateCollectionRequestSchema:
      properties:
        title:
          anyOf:
            - description: >-
                Human-readable collection title.

                Use a stable label suitable for navigation and exact title
                matching.

                Maximum: 1,000 characters (and no more than 1,000 UTF-8 bytes).
              maxLength: 1000
              type: string
            - type: 'null'
          description: |-
            Optional replacement title for the collection.
            Use this field to rename a collection.
            Omit to keep the current title unchanged.
            Maximum: 1,000 characters (and no more than 1,000 UTF-8 bytes).
          examples:
            - Acme Corp - 2026
          title: Title
        description:
          anyOf:
            - description: >-
                Optional descriptive text for collection scope or intent.

                Maximum: 10,000 characters (and no more than 10,000 UTF-8
                bytes).
              maxLength: 10000
              type: string
            - type: 'null'
          description: |-
            Optional replacement description for the collection.
            Omit to keep the current description unchanged.
            Set to an empty string to clear the description.
            Maximum: 10,000 characters (and no more than 10,000 UTF-8 bytes).
          examples:
            - Collection for 2026 Acme planning and execution notes.
          title: Description
        updated_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          description: >-
            Optional "last updated" timestamp for this write (ISO 8601).

            If provided, it must include a timezone offset and cannot be in the
            future.

            If omitted, the current server time is used.
          examples:
            - '2025-04-02T09:15:22Z'
            - '2023-12-15T09:45:30+01:00'
          title: Updated At
      title: UpdateCollectionRequestSchema
      type: object
    UpdateCollectionResponseSchema:
      example:
        created_at: '2025-04-11T04:47:14.457Z'
        description: Collection for 2026 Acme planning and execution notes.
        id: 5e29c8a2-c73b-476b-9311-e2579712d4b1
        request_id: api-request-036ed6c7-de00-459f-a89b-43d26aafe522
        title: Acme Corp - 2026
        updated_at: '2025-04-12T10:15:00.000Z'
      properties:
        request_id:
          description: Identifier for this API request. Useful for tracing and support.
          title: Request Id
          type: string
        id:
          description: UUID of the updated collection.
          format: uuid
          title: Id
          type: string
        title:
          description: Current title of the collection after the update.
          title: Title
          type: string
        description:
          anyOf:
            - type: string
            - type: 'null'
          description: Optional description text currently stored on the collection.
          title: Description
        created_at:
          description: Creation timestamp for the collection in ISO 8601 format.
          format: date-time
          title: Created At
          type: string
        updated_at:
          description: Last modification timestamp for the collection in ISO 8601 format.
          format: date-time
          title: Updated At
          type: string
      required:
        - request_id
        - id
        - title
        - description
        - created_at
        - updated_at
      title: UpdateCollectionResponseSchema
      type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````