Update an endpoint
Change the URL, the subscription, the label or the enabled state. Send only the fields you want to change. Setting active to true also resets failure_count to zero, which is how you bring back an endpoint we auto-disabled. A url that is not https is ignored rather than rejected, so read the returned url back. Management, so a valid key is enough. Answers 404 NOT_FOUND for an unknown id.
Path parameters
Endpoint id.
Request body
New URL. Ignored unless it starts with https://.
Replaces the subscription outright. Unrecognised names are dropped.
New label.
Enable or disable. True also clears failure_count.
Response schema
7 fields
Derived from the example response, nested as the JSON is.
Whether the request succeeded.
data
The payload. Everything an endpoint returns sits under this key.
Stable identifier for the record. On the tracking endpoints this is the container UUID, except on a portfolio summary row, where it is the container number.
Where we POST the events.
The events this endpoint receives. Anything not listed is not delivered.
The carrier own phrasing for the event, falling back to our word for the code.
False while the endpoint is paused. A paused endpoint keeps its secret and its history.
curl -X PATCH 'https://api.loadingmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10' \
-H "Authorization: Bearer lmcp_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"active":true}'const res = await fetch("https://api.loadingmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10", {
method: "PATCH",
headers: {
"Authorization": "Bearer lmcp_YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"active": true
})
});
const data = await res.json();import requests
res = requests.patch(
"https://api.loadingmcp.com/v1/webhooks/3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10",
headers={"Authorization": "Bearer lmcp_YOUR_API_KEY"},
json={
"active": True
},
)
data = res.json() {
"ok": true,
"data": {
"id": "3f1c9a4e-7b52-4f0e-9a41-2c9d5e6b8a10",
"url": "https://hooks.example.com/loadingmcp",
"event_types": ["plan_created", "plan_updated"],
"description": "Plan changes, warehouse app",
"active": true
}
}