Skip to main content
PATCH
/
v2
/
collections
/
{collection_id}
cURL
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."
     }'
{
  "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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

collection_id
string<uuid>
required

UUID of the collection to update. Use an ID returned by create/list/search. The caller must be able to edit this collection.

Body

application/json
title
string | null

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

Maximum string length: 1000
Example:

"Acme Corp - 2026"

description
string | null

Optional descriptive text for collection scope or intent. Maximum: 10,000 characters (and no more than 10,000 UTF-8 bytes).

Maximum string length: 10000
Example:

"Collection for 2026 Acme planning and execution notes."

updated_at
string<date-time> | null

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.

Example:

"2025-04-02T09:15:22Z"

Response

200 - application/json

OK

request_id
string
required

Identifier for this API request. Useful for tracing and support.

id
string<uuid>
required

UUID of the updated collection.

title
string
required

Current title of the collection after the update.

description
string | null
required

Optional description text currently stored on the collection.

created_at
string<date-time>
required

Creation timestamp for the collection in ISO 8601 format.

updated_at
string<date-time>
required

Last modification timestamp for the collection in ISO 8601 format.