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);
}