Skip to main content
PATCH
/
v3
/
settings
Update settings
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,
    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));
{
  "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,
    "chunkSize": -1
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
excludeItems
filterPrompt
string | null
googleDriveClientId
string | null
googleDriveClientSecret
string | null
googleDriveCustomKeyEnabled
boolean | null
includeItems
notionClientId
string | null
notionClientSecret
string | null
notionCustomKeyEnabled
boolean | null
onedriveClientId
string | null
onedriveClientSecret
string | null
onedriveCustomKeyEnabled
boolean | null
shouldLLMFilter
boolean | null
chunkSize
integer | null
Required range: -2147483648 <= x <= 2147483647

Response

Settings updated successfully

orgId
string
required
orgSlug
string
required
updated
object
required