Replace what the project exposes
curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{pid}/data-api/exposures \
--header 'Content-Type: application/json' \
--data '
{
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exposures: [{dataset: '<string>', columns: ['<string>']}]})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/data-api/exposures', 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/{pid}/data-api/exposures"
payload = { "exposures": [
{
"dataset": "<string>",
"columns": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Data API
Replace what the project exposes
PUT
/
admin
/
api
/
projects
/
{pid}
/
data-api
/
exposures
Replace what the project exposes
curl --request PUT \
--url https://app.hookie.ai/admin/api/projects/{pid}/data-api/exposures \
--header 'Content-Type: application/json' \
--data '
{
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
]
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exposures: [{dataset: '<string>', columns: ['<string>']}]})
};
fetch('https://app.hookie.ai/admin/api/projects/{pid}/data-api/exposures', 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/{pid}/data-api/exposures"
payload = { "exposures": [
{
"dataset": "<string>",
"columns": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)