Replace what the project exposes
curl --request PUT \
--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: 'PUT',
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.put(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>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"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>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}Data API
Replace what the project exposes
PUT
/
admin
/
api
/
projects
/
{project_id}
/
data-api
/
exposures
Replace what the project exposes
curl --request PUT \
--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: 'PUT',
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.put(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>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}{
"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>",
"max_members": 123,
"members": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true
}