---
title: "Turn « Index in Context » on or off for a Notion connection"
method: PATCH
path: "/integrations/connections/{id}/context-index"
tags: ["Integrations"]
---

# Turn « Index in Context » on or off for a Notion connection

`PATCH /integrations/connections/{id}/context-index`

## Request

- Base URL: `https://api.atako.ai`
- URL: `https://api.atako.ai/integrations/connections/{id}/context-index`
- Auth: HTTP bearer

Same guard as managing the connection: an admin for a company connection, the creator for a personal one. Turning it off enqueues a `delete` in the knowledge outbox for every item of the connection (the indexer purges them). A company connection's pages are readable by every member; a personal one's by its creator only; agents need an integration grant on the connection.

## Path parameters

- `id` string, required

## Request body

- object
  - `enabled` boolean, required

## Response `200`

- object
  - `enabled` boolean

## Other responses

- `400`: enabled_required / not_notion / connection_revoked
- `401`: Missing, malformed, or invalid bearer token / API key, or revoked session (SESSION_REVOKED).
- `403`: forbidden — not an admin (company connection) or not the creator (personal connection)
- `404`: Not found, or the caller is not authorized to access this resource.

---

[API](https://skmtc.dev/atako/apis/atako-api.md) · [All operations](https://skmtc.dev/atako/apis/atako-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atako/apis/atako-api/revisions/aa555c56fbd7?raw)
