Update settings
Update settings for an organization
PATCH
/
v3
/
settings
Copy
Ask AI
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);
Copy
Ask AI
{
"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
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
.
Was this page helpful?
Copy
Ask AI
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);
Copy
Ask AI
{
"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>"
}
}
Assistant
Responses are generated using AI and may contain mistakes.