import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: 'My API Key',
});
const setting = await client.settings.update();
console.log(setting.orgId);
{
"orgId": "<string>",
"orgSlug": "<string>",
"updated": {
"excludeItems": "<string>",
"filterPrompt": "<string>",
"googleDriveClientId": "<string>",
"googleDriveClientSecret": "<string>",
"googleDriveCustomKeyEnabled": true,
"includeItems": "<string>",
"notionClientId": "<string>",
"notionClientSecret": "<string>",
"notionCustomKeyEnabled": true,
"onedriveClientId": "<string>",
"onedriveClientSecret": "<string>",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
}
Update settings for an organization
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: 'My API Key',
});
const setting = await client.settings.update();
console.log(setting.orgId);
{
"orgId": "<string>",
"orgSlug": "<string>",
"updated": {
"excludeItems": "<string>",
"filterPrompt": "<string>",
"googleDriveClientId": "<string>",
"googleDriveClientSecret": "<string>",
"googleDriveCustomKeyEnabled": true,
"includeItems": "<string>",
"notionClientId": "<string>",
"notionClientSecret": "<string>",
"notionCustomKeyEnabled": true,
"onedriveClientId": "<string>",
"onedriveClientSecret": "<string>",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Settings updated successfully
The response is of type object
.
Was this page helpful?