Skip to content

PATCH /v3/documents/{id} returns 200 but metadata is not updated #624

@viktorbonino

Description

@viktorbonino

Description

When calling PATCH /v3/documents/{id} to update document metadata, the API returns a 200 status code but the metadata is not actually persisted. Subsequent GET /v3/documents/{id} calls show the metadata unchanged.

Steps to Reproduce

  1. Create a document via POST /v3/documents
  2. Wait for document status to be done
  3. Call PATCH /v3/documents/{id} with metadata:
    {
      "metadata": {
        "tag_1": "example",
        "tag_2": "test",
        "version": 2
      }
    }

Response returns 200 OK with { "id": "...", "status": "done" }
Call GET /v3/documents/{id} to retrieve the document
Metadata field is empty/unchanged
Expected Behavior
Metadata should be persisted and visible when fetching the document.
Actual Behavior
API returns 200 success but metadata is not saved.
Environment
Endpoint: https://api.supermemory.ai/v3/documents/{id}
Method: PATCH
Content-Type: application/json
Auth: Bearer token
Additional Context
Also tried using the official SDK supermemory.documents.update() with the same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions