Replace what the project exposes (PATCH, same as PUT)
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/data-api/exposures \
--header 'Content-Type: application/json' \
--data '
{
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exposures: [{dataset: '<string>', columns: ['<string>']}]})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/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/{project_id}/data-api/exposures"
payload = { "exposures": [
{
"dataset": "<string>",
"columns": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"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>"
}Data API
Replace what the project exposes (PATCH, same as PUT)
PATCH is accepted on this path and behaves exactly as PUT does: the list sent replaces the project’s exposures.
PATCH
/
admin
/
api
/
projects
/
{project_id}
/
data-api
/
exposures
Replace what the project exposes (PATCH, same as PUT)
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/data-api/exposures \
--header 'Content-Type: application/json' \
--data '
{
"exposures": [
{
"dataset": "<string>",
"columns": [
"<string>"
]
}
]
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({exposures: [{dataset: '<string>', columns: ['<string>']}]})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/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/{project_id}/data-api/exposures"
payload = { "exposures": [
{
"dataset": "<string>",
"columns": ["<string>"]
}
] }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"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>"
}