Skip to main content
PUT
Connect a knowledge source

Path Parameters

project_id
string
required

The project's id (not its slug). GET /admin/api/projects lists each project's id and slug.

provider
enum<string>
required

notion, gdrive (Google Drive), confluence or web (a public website).

Available options:
notion,
gdrive,
confluence,
web

Body

application/json
config
object

The source's settings. notion: {} (every page shared with your own Notion integration). gdrive: {folder_id} (a folder id or its URL, shared with your own service account). confluence: {site, email, space_keys} (site is your-site.atlassian.net; email is the Atlassian account the API token belongs to; up to 20 space keys). web: {url} (an https start page; pages under the same origin and path are read, robots.txt is honoured).

credential
string
write-only

The customer's own credential, encrypted and never returned. notion: an internal integration token. gdrive: a service-account JSON key file. confluence: an Atlassian API token. web: none. Required when connecting; omit on a PATCH to keep the stored one.

Response

Successful operation

The response is of type object.