Mediflo
REST APIWebhooks

Update a webhook endpoint

`status` accepts `ENABLED` and `DISABLED` only — `AUTO_DISABLED` is set by us after sustained failure. Sending `ENABLED` also clears the failure counter, so a freshly fixed endpoint is not one failure away from being disabled again. Required scope: `webhooks.manage`.

PATCH/webhook-endpoints/{endpointId}

Authorization

ApiKeyAuth
AuthorizationBearer <token>

An external API key, sent as Authorization: Bearer mflo_…. Scopes are checked per route; see each operation’s description.

In: header

Path Parameters

endpointId*string
Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/webhook-endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "url": "string",    "description": "string",    "subscribedEvents": [      "string"    ],    "payloadConfig": null,    "status": "ENABLED",    "consecutiveFailures": 0,    "lastSuccessAt": "string",    "lastFailureAt": "string",    "autoDisabledAt": "string",    "previousSecretExpiresAt": "string",    "createdAt": "string",    "updatedAt": "string"  }}