Update a webhook endpoint
curl --request PATCH \
--url https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"tax_return.*"
],
"status": "enabled"
}
'import requests
url = "https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id}"
payload = {
"events": ["tax_return.*"],
"status": "enabled"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['tax_return.*'], status: 'enabled'})
};
fetch('https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "enabled",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}Webhooks
Update a webhook endpoint
Changes an endpoint’s URL, events or description, or turns it off with status: disabled and back on with enabled.
PATCH
/
partner
/
webhook-endpoints
/
{endpoint_id}
Update a webhook endpoint
curl --request PATCH \
--url https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"events": [
"tax_return.*"
],
"status": "enabled"
}
'import requests
url = "https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id}"
payload = {
"events": ["tax_return.*"],
"status": "enabled"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({events: ['tax_return.*'], status: 'enabled'})
};
fetch('https://api.melso.ai/v1/partner/webhook-endpoints/{endpoint_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"url": "<string>",
"events": [
"<string>"
],
"status": "enabled",
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}{
"error": "<string>",
"code": "<string>",
"request_id": "<string>",
"field": "<string>",
"permission": "<string>"
}Early access. Your firm’s owner or an admin creates partner keys in Settings › Developers. See Partner API.
Beta. Melso does not serve this operation yet, and its fields can still change. See what is live.
webhooks:write.Authorizations
A partner key of your firm, mk_live_…, which reaches every company of
the firm. Each key carries the permissions chosen when it was created.
Keep it on your servers. See Authentication.
Body
application/json