Edit visible fields, filters and sort
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/views/{view_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"columns": [
"<string>"
],
"filters": [
{
"field": "<string>",
"value": "<string>"
}
],
"sort": {
"field": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
columns: ['<string>'],
filters: [{field: '<string>', value: '<string>'}],
sort: {field: '<string>'}
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/views/{view_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}/views/{view_id}"
payload = {
"name": "<string>",
"columns": ["<string>"],
"filters": [
{
"field": "<string>",
"value": "<string>"
}
],
"sort": { "field": "<string>" }
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}Data workspace
Edit visible fields, filters and sort
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}
/
views
/
{view_id}
Edit visible fields, filters and sort
curl --request PATCH \
--url https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/views/{view_id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"columns": [
"<string>"
],
"filters": [
{
"field": "<string>",
"value": "<string>"
}
],
"sort": {
"field": "<string>"
}
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
columns: ['<string>'],
filters: [{field: '<string>', value: '<string>'}],
sort: {field: '<string>'}
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/tables/{table_id}/views/{view_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}/views/{view_id}"
payload = {
"name": "<string>",
"columns": ["<string>"],
"filters": [
{
"field": "<string>",
"value": "<string>"
}
],
"sort": { "field": "<string>" }
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){}