-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
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
- Create a document via
POST /v3/documents - Wait for document status to be
done - 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.