Update 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,
"name": "<string>",
"dataset": "<string>",
"poll_interval": 123,
"cursor_column": "<string>",
"type": "postgres",
"config": {
"url": "<string>",
"table": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
name: '<string>',
dataset: '<string>',
poll_interval: 123,
cursor_column: '<string>',
type: 'postgres',
config: {url: '<string>', table: '<string>'}
})
};
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,
"name": "<string>",
"dataset": "<string>",
"poll_interval": 123,
"cursor_column": "<string>",
"type": "postgres",
"config": {
"url": "<string>",
"table": "<string>"
}
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"poll_interval": 123
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}Sources
Update a source connector
Every field a poll depends on can be corrected in place (#196, FLOW-3). A partial config (for example only table) is merged over the stored, encrypted one, so the connection string need not be sent again. A new table or cursor column restarts the watermark (last_cursor is cleared); any edit clears last_error.
PATCH
/
admin
/
api
/
projects
/
{project_id}
/
sources
/
{source_id}
Update 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,
"name": "<string>",
"dataset": "<string>",
"poll_interval": 123,
"cursor_column": "<string>",
"type": "postgres",
"config": {
"url": "<string>",
"table": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {cookie: 'hookie_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
enabled: true,
name: '<string>',
dataset: '<string>',
poll_interval: 123,
cursor_column: '<string>',
type: 'postgres',
config: {url: '<string>', table: '<string>'}
})
};
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,
"name": "<string>",
"dataset": "<string>",
"poll_interval": 123,
"cursor_column": "<string>",
"type": "postgres",
"config": {
"url": "<string>",
"table": "<string>"
}
}
headers = {
"cookie": "hookie_session=",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"poll_interval": 123
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>"
}Authorizations
sessionbearerAuthapiKey
The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.
Body
application/json
Minimum string length:
1Pattern:
^[a-zA-Z][a-zA-Z0-9_]{0,62}$Seconds, clamped up to the plan minimum.
Pattern:
^[A-Za-z_][A-Za-z0-9_]*$Available options:
postgres Merged over the stored config, then validated whole.
Show child attributes
Show child attributes