setCopilotMemoryEnabled
Requires permission catalog:copilot:chat.
Turn Minori's memory on or off. enabled: null clears the caller's own override so the organization default applies again. Off stops both reading and writing; it does NOT delete existing facts — clearCopilotMemory does that.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation SetCopilotMemoryEnabled($learning: Boolean!, $organizationWide: Boolean!) {
setCopilotMemoryEnabled(
learning: $learning
organizationWide: $organizationWide
) {
enabled
learningAvailable
learningEnabled
learningLocked
learningSignals
learningSource
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation SetCopilotMemoryEnabled($learning: Boolean!, $organizationWide: Boolean!) {\n setCopilotMemoryEnabled(\n learning: $learning\n organizationWide: $organizationWide\n ) {\n enabled\n learningAvailable\n learningEnabled\n learningLocked\n learningSignals\n learningSource\n }\n}",
"variables": {
"learning": true,
"organizationWide": true
}
}
EOF
Variables:
{
"learning": true,
"organizationWide": true
}
Response:
{
"data": {
"setCopilotMemoryEnabled": {
"enabled": true,
"learningAvailable": true,
"learningEnabled": true,
"learningLocked": true,
"learningSignals": true,
"learningSource": "string"
}
}
}
setCopilotMemoryEnabled(
enabled: Boolean
learning: Boolean! = false
organizationWide: Boolean! = false
): CopilotMemorySwitchType!
Arguments
setCopilotMemoryEnabled.enabled ● Boolean scalar
True to turn Copilot memory on, false to turn it off. Send null to leave it unchanged.
setCopilotMemoryEnabled.learning ● Boolean! non-null scalar
True to let Copilot learn from the user's activity.
setCopilotMemoryEnabled.organizationWide ● Boolean! non-null scalar
True to change the setting for the whole organization instead of the caller.
Type
CopilotMemorySwitchType object
Whether the copilot may remember anything for the caller, and where that was decided.