Chuyển đến nội dung chính
PATCH
/
webhooks
/
{webhook_id}
/
headers
JavaScript
import DodoPayments from 'dodopayments';

const client = new DodoPayments({
  bearerToken: process.env['DODO_PAYMENTS_API_KEY'], // This is the default and can be omitted
});

await client.webhooks.headers.update('whk_YdWqVEGKmSYKbsIyDxEab', { headers: { foo: 'string' } });

Ủy quyền

Authorization
string
header
bắt buộc

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

Tham số đường dẫn

webhook_id
string
bắt buộc

Webhook ID

Nội dung

application/json
headers
object
bắt buộc

Object of header-value pair to update or add

Phản hồi

Webhook headers patched successfully

Lần sửa đổi cuối 1 tháng 4, 2026