Change the integration's settings or secrets, or enable / disable it
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/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/{pid}/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/{pid}/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
}
}
}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
/
{pid}
/
telemetry
Change the integration's settings or secrets, or enable / disable it
curl --request PATCH \
--url https://app.hookie.ai/admin/api/projects/{pid}/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/{pid}/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/{pid}/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
}
}
}Path Parameters
Body
application/json
Response
Updated.
Show child attributes
Show child attributes