Enable or disable a source connector
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}', 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}/sources/{source_id}"
payload = { "enabled": True }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Sources
Enable or disable a source connector
PATCH
/
admin
/
api
/
projects
/
{project_id}
/
sources
/
{source_id}
Enable or disable a source connector
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id} \
--header 'Content-Type: application/json' \
--cookie hookie_session= \
--data '
{
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/sources/{source_id}', 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}/sources/{source_id}"
payload = { "enabled": True }
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
sessionbearerAuth
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Body
application/json
enabled is the only mutable field; every other key is ignored.
Response
Updated.
Available options:
true