PATCH
/
v3
/
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": "<string>",
  "orgSlug": "<string>",
  "updated": {
    "shouldLLMFilter": true,
    "filterPrompt": "<string>",
    "includeItems": "<string>",
    "excludeItems": "<string>",
    "filterTags": "<string>",
    "googleDriveCustomKeyEnabled": true,
    "googleDriveClientId": "<string>",
    "googleDriveClientSecret": "<string>",
    "notionCustomKeyEnabled": true,
    "notionClientId": "<string>",
    "notionClientSecret": "<string>",
    "onedriveCustomKeyEnabled": true,
    "onedriveClientId": "<string>",
    "onedriveClientSecret": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Settings updated successfully

The response is of type object.