Enable/disable or re-point a destination (alias of PUT)
curl --request PATCH \
--url https://app.hookie.ai/portal/api/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://hooks.acme.test/v2"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://hooks.acme.test/v2'})
};
fetch('https://app.hookie.ai/portal/api/destinations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/portal/api/destinations/{id}"
payload = { "url": "https://hooks.acme.test/v2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Customer Portal
Enable/disable or re-point a destination (alias of PUT)
PATCH
/
portal
/
api
/
destinations
/
{id}
Enable/disable or re-point a destination (alias of PUT)
curl --request PATCH \
--url https://app.hookie.ai/portal/api/destinations/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://hooks.acme.test/v2"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://hooks.acme.test/v2'})
};
fetch('https://app.hookie.ai/portal/api/destinations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/portal/api/destinations/{id}"
payload = { "url": "https://hooks.acme.test/v2" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"ok": true
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>"
}Authorizations
portalTokenHeaderportalTokenQuery
A hpt_… customer portal token, as Authorization: Bearer. Stored hashed; shown once at issue.
Path Parameters
Destination id. Scoped to the token's tenant, portal and customer.
Query Parameters
Portal access token (hpt_…), as an alternative to the Authorization: Bearer header.
Body
application/json
Identical handler to PUT — PATCH is not a partial-update variant, it is the same code path. Only enabled and url are honoured; name and dataset_filter are ignored. An absent or unparseable body is treated as {}, which sets enabled = 1.
Response
Updated.
Available options:
true