API referenceWebhooks
update_webhook_endpoint
PATCH /v1/webhook_endpoints/{id}: changes the fields sent (an admin's key).
PATCH
Changes the fields sent (an admin's key). Set status to enabled to turn a disabled endpoint on again.
Request body
application/json
| Field | Type | Description |
|---|---|---|
url | string | |
event_types | array of string | |
description | string | |
status | enabled, disabled |
Responses
The endpoint.
| Field | Type | Description |
|---|---|---|
id | string |
|
url | string | |
description | string | |
event_types | array of string | |
status | enabled, disabled | |
disabled_reason | string | Why it was disabled. |
failing_since | string or null | |
created_at | string | |
updated_at | string |
| Status | Type and when |
|---|---|
400 |
|
401 |
|
403 |
|
404 |
|
Every error has the same shape; see Errors.
Examples
curl -X PATCH 'https://api.finic.ai/v1/webhook_endpoints/string' \ -H "Authorization: Bearer $FINIC_API_KEY" \ -H 'Content-Type: application/json' \ -d '{ "event_types": [ "*" ]}'Example Response
{ "id": "string", "url": "string", "description": "string", "event_types": [ "string" ], "status": "enabled", "disabled_reason": "string", "failing_since": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}