Update settings
client.settings.update(SettingUpdateParams { chunkSize, excludeItems, filterPrompt, 14 more } body, RequestOptionsoptions?): SettingUpdateResponse { orgId, orgSlug, updated }
PATCH/v3/settings
Update settings
import Supermemory from 'supermemory';
const client = new Supermemory({
apiKey: process.env['SUPERMEMORY_API_KEY'], // This is the default and can be omitted
});
const setting = await client.settings.update();
console.log(setting.orgId);{
"orgId": "orgId",
"orgSlug": "orgSlug",
"updated": {
"chunkSize": -2147483648,
"excludeItems": "string",
"filterPrompt": "filterPrompt",
"githubClientId": "githubClientId",
"githubClientSecret": "githubClientSecret",
"githubCustomKeyEnabled": true,
"googleDriveClientId": "googleDriveClientId",
"googleDriveClientSecret": "googleDriveClientSecret",
"googleDriveCustomKeyEnabled": true,
"includeItems": "string",
"notionClientId": "notionClientId",
"notionClientSecret": "notionClientSecret",
"notionCustomKeyEnabled": true,
"onedriveClientId": "onedriveClientId",
"onedriveClientSecret": "onedriveClientSecret",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
}Returns Examples
{
"orgId": "orgId",
"orgSlug": "orgSlug",
"updated": {
"chunkSize": -2147483648,
"excludeItems": "string",
"filterPrompt": "filterPrompt",
"githubClientId": "githubClientId",
"githubClientSecret": "githubClientSecret",
"githubCustomKeyEnabled": true,
"googleDriveClientId": "googleDriveClientId",
"googleDriveClientSecret": "googleDriveClientSecret",
"googleDriveCustomKeyEnabled": true,
"includeItems": "string",
"notionClientId": "notionClientId",
"notionClientSecret": "notionClientSecret",
"notionCustomKeyEnabled": true,
"onedriveClientId": "onedriveClientId",
"onedriveClientSecret": "onedriveClientSecret",
"onedriveCustomKeyEnabled": true,
"shouldLLMFilter": true
}
}