Skip to content
Get started

Update settings

settings.update(SettingUpdateParams**kwargs) -> SettingUpdateResponse
PATCH/v3/settings

Update settings for an organization

ParametersExpand Collapse
chunk_size: Optional[int]
minimum-2147483648
maximum2147483647
exclude_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
Iterable[object]
filter_prompt: Optional[str]
github_client_id: Optional[str]
github_client_secret: Optional[str]
github_custom_key_enabled: Optional[bool]
google_drive_client_id: Optional[str]
google_drive_client_secret: Optional[str]
google_drive_custom_key_enabled: Optional[bool]
include_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
Iterable[object]
notion_client_id: Optional[str]
notion_client_secret: Optional[str]
notion_custom_key_enabled: Optional[bool]
onedrive_client_id: Optional[str]
onedrive_client_secret: Optional[str]
onedrive_custom_key_enabled: Optional[bool]
should_llm_filter: Optional[bool]
ReturnsExpand Collapse
class SettingUpdateResponse:
org_id: str
org_slug: str
updated: Updated
chunk_size: Optional[int]
minimum-2147483648
maximum2147483647
exclude_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
List[object]
filter_prompt: Optional[str]
github_client_id: Optional[str]
github_client_secret: Optional[str]
github_custom_key_enabled: Optional[bool]
google_drive_client_id: Optional[str]
google_drive_client_secret: Optional[str]
google_drive_custom_key_enabled: Optional[bool]
include_items: Optional[Union[str, float, bool, 3 more]]
One of the following:
str
float
bool
Dict[str, object]
List[object]
notion_client_id: Optional[str]
notion_client_secret: Optional[str]
notion_custom_key_enabled: Optional[bool]
onedrive_client_id: Optional[str]
onedrive_client_secret: Optional[str]
onedrive_custom_key_enabled: Optional[bool]
should_llm_filter: Optional[bool]

Update settings

import os
from supermemory import Supermemory

client = Supermemory(
    api_key=os.environ.get("SUPERMEMORY_API_KEY"),  # This is the default and can be omitted
)
setting = client.settings.update()
print(setting.org_id)
{
  "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
  }
}