Skip to main content
PATCH
/
v3
/
documents
/
{id}
Update document
const url = 'https://api.supermemory.ai/v3/documents/{id}';
const options = {
  method: 'PATCH',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"containerTag":"user_123","containerTags":["user_123","project_123"],"content":"This is a detailed article about machine learning concepts...","customId":"mem_abc123","metadata":{"category":"technology","isPublic":true,"readingTime":5,"source":"web","tag_1":"ai","tag_2":"machine-learning"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
{
  "id": "<string>",
  "status": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

id
string
required

Body

application/json
containerTag
string
Example:
containerTags
string[]
deprecated
Example:
content
string
Example:
customId
string
Example:
metadata
object
Example:

Response

id
string
required
status
string
required