Create a dashboard
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/dashboards \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"widgets": [
{
"title": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"version": 2
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
widgets: [
{
title: '<string>',
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: '<string>',
view_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
version: 2
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/dashboards', 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/dashboards"
payload = {
"name": "<string>",
"widgets": [
{
"title": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"version": 2
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Data workspace
Create a dashboard
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.
POST
/
admin
/
api
/
data-workspace
/
dashboards
Create a dashboard
curl --request POST \
--url https://app.hookie.ai/admin/api/data-workspace/dashboards \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"widgets": [
{
"title": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"version": 2
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
widgets: [
{
title: '<string>',
table_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
field: '<string>',
view_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
],
version: 2
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/dashboards', 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/dashboards"
payload = {
"name": "<string>",
"widgets": [
{
"title": "<string>",
"table_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"field": "<string>",
"view_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"version": 2
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}