v1

latestOpenAPI 3.1.02026-07-1353090.4 KB
Webhooks

Update a Webhook Endpoint

update an existing webhook endpoint

patch/v1/webhook/endpoint.update

Request body

endpoint_idstring

the endpoint's id you want to update

urlstring

the new post url you want to set for the endpoint

eventsstring[]

the new events array you want to set for your endpoint

Response

200

codeinteger
{"stackTrail":"paths:/v1/webhook/endpoint.update:patch:responses:200:content:application/json:schema:properties:msg","oasType":"schema","type":"unknown"}

Example response

{
  "code": 100,
  "data": {
    "endpoint_id": "123456",
    "url": "https://helloworld.com",
    "secret": "whsec_123456",
    "status": "enabled",
    "username": "123456",
    "created_at": "2023-04-03T05:40:47"
  }
}