const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
excludeItems: '<string>',
filterPrompt: '<string>',
googleDriveClientId: '<string>',
googleDriveClientSecret: '<string>',
googleDriveCustomKeyEnabled: true,
includeItems: '<string>',
notionClientId: '<string>',
notionClientSecret: '<string>',
notionCustomKeyEnabled: true,
onedriveClientId: '<string>',
onedriveClientSecret: '<string>',
onedriveCustomKeyEnabled: true,
githubClientId: '<string>',
githubClientSecret: '<string>',
githubCustomKeyEnabled: true,
shouldLLMFilter: true,
chunkSize: -1
})
};
fetch('https://api.supermemory.ai/v3/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));