Skip to main content
PATCH
/
webhooks
/
{id}
Update a webhook endpoint
curl --request PATCH \
  --url https://whatsrb.com/api/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "webhook": {
    "url": "<string>",
    "active": true,
    "events": [
      "<string>"
    ]
  }
}
'
{
  "data": {
    "id": 123,
    "url": "<string>",
    "events": [
      "<string>"
    ],
    "active": true,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from the WhatsRB dashboard. Format: Bearer wrb_live_xxx

Path Parameters

id
integer
required

Body

application/json
webhook
object

Response

OK

data
object