curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"config": {},
"credential": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({config: {}, credential: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}"
payload = {
"config": {},
"credential": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Change a knowledge connector
Changes the settings or replaces the credential of an existing connector; fields left out keep their stored values. Changing what a stored credential reads (another folder, site or spaces) needs the credential sent again (connector_credential_required). Checked with the provider like a connect, then synced again.
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider} \
--header 'Content-Type: application/json' \
--data '
{
"config": {},
"credential": "<string>"
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({config: {}, credential: '<string>'})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/connectors/{provider}"
payload = {
"config": {},
"credential": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
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).
Response
Successful operation
The response is of type object.