API referenceWebhooks

update_webhook_endpoint

PATCH /v1/webhook_endpoints/{id}: changes the fields sent (an admin's key).

PATCH
/v1/webhook_endpoints/{id}

Changes the fields sent (an admin's key). Set status to enabled to turn a disabled endpoint on again.

Request body

application/json

FieldTypeDescription
urlstring
event_typesarray of string
descriptionstring
statusenabled, disabled

Responses

The endpoint.

FieldTypeDescription
idstring

whe_…

urlstring
descriptionstring
event_typesarray of string
statusenabled, disabled
disabled_reasonstring

Why it was disabled.

failing_sincestring or null
created_atstring
updated_atstring

Examples

Example Request
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"}