PATCH
/
webhooks
/
{webhook_id}
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: 'My Bearer Token',
});

const webhook = await client.webhooks.update('webhook_id');

console.log(webhook.id);
{
  "created_at": "<string>",
  "description": "<string>",
  "disabled": true,
  "filter_types": [
    "<string>"
  ],
  "id": "<string>",
  "metadata": {},
  "rate_limit": 1,
  "updated_at": "<string>",
  "url": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

webhook_id
string
required

Body

application/json

Response

200
application/json

Webhook patched successfully

The response is of type object.