Change the integration's settings or secrets, or enable / disable it
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/telemetry \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {},
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}, enabled: true})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/telemetry', 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}/telemetry"
payload = {
"settings": {},
"secrets": {},
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"integration": {
"id": "<string>",
"vendor": "datadog",
"vendor_name": "<string>",
"signals": [
"logs"
],
"settings": {},
"secrets_set": [
"<string>"
],
"secrets_unreadable": true,
"endpoints": {
"logs": "<string>",
"traces": "<string>"
},
"enabled": true,
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"status": {
"last_success_at": "<string>",
"last_error": "<string>",
"last_error_at": "<string>",
"exported_count": 123,
"failed_count": 123,
"dropped_count": 123,
"last_test_at": "<string>",
"last_test_ok": 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
}{
"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
}Broadcast Logs
Change the integration's settings or secrets, or enable / disable it
The vendor cannot change here (that is a replace). Secrets left blank keep their stored value. Disabling stops forwarding at once, including anything already queued. Audited as update_telemetry_integration with the names (never the values) of changed secrets.
PATCH
/
admin
/
api
/
projects
/
{project_id}
/
telemetry
Change the integration's settings or secrets, or enable / disable it
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{project_id}/telemetry \
--header 'Content-Type: application/json' \
--data '
{
"settings": {},
"secrets": {},
"enabled": true
}
'const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({settings: {}, secrets: {}, enabled: true})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/telemetry', 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}/telemetry"
payload = {
"settings": {},
"secrets": {},
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"integration": {
"id": "<string>",
"vendor": "datadog",
"vendor_name": "<string>",
"signals": [
"logs"
],
"settings": {},
"secrets_set": [
"<string>"
],
"secrets_unreadable": true,
"endpoints": {
"logs": "<string>",
"traces": "<string>"
},
"enabled": true,
"created_by": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"status": {
"last_success_at": "<string>",
"last_error": "<string>",
"last_error_at": "<string>",
"exported_count": 123,
"failed_count": 123,
"dropped_count": 123,
"last_test_at": "<string>",
"last_test_ok": 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
}{
"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
}Body
application/json