Update a dataset connection
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/inputs/{input_id} \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset": "<string>",
"mappings": {},
"enabled": true,
"allow_workflows": true
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dataset: '<string>',
mappings: {},
enabled: true,
allow_workflows: true
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/inputs/{input_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/data-workspace/tables/{table_id}/inputs/{input_id}"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset": "<string>",
"mappings": {},
"enabled": True,
"allow_workflows": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Update a dataset connection
Dedicated workspace database. Pro or Team required. Workspace-scoped credentials only; mutations require the write capability. All reads and writes resolve the database from the authenticated workspace.
PATCH
/
admin
/
api
/
data-workspace
/
tables
/
{table_id}
/
inputs
/
{input_id}
Update a dataset connection
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/inputs/{input_id} \
--header 'Content-Type: application/json' \
--data '
{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset": "<string>",
"mappings": {},
"enabled": true,
"allow_workflows": true
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
dataset: '<string>',
mappings: {},
enabled: true,
allow_workflows: true
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/inputs/{input_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/data-workspace/tables/{table_id}/inputs/{input_id}"
payload = {
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dataset": "<string>",
"mappings": {},
"enabled": True,
"allow_workflows": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Body
application/json
Response
Successful operation
The response is of type object.