Webhooks
Update a webhook endpoint
PATCH
profile_id null: every profile. active true turns a disabled endpoint back on and resets its failure count.
Requires the write scope. Owner key or session only: a profile key gets 403 owner_key_required.
bearerheader
AuthorizationBearer <token>An API key (tb_live_...) from the dashboard, or an OAuth access token.
id*stringFormat
uuidapplication/json- body
url?stringFormat
uriLength
length <= 2000events?array<>Items
1 <= itemsprofile_id?|nullactive?booleanThe endpoint.
application/json- response
id*stringFormat
uuidurl*stringevents*array<>profile_id*|null: events of every profile.
active*booleanfailure_count*integerdisabled_at*|nullcreated_at*stringFormat
date-timecurl -X PATCH 'https://api.tebar.app/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"url": "string",
"events": [
"account.connected"
],
"profile_id": "bfcb6779-b1f9-41fc-92d7-88f8bc1d12e8",
"active": true,
"failure_count": 0,
"disabled_at": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z"
}