Passer au contenu principal
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('webhook_id', { headers: { foo: 'string' } });

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

webhook_id
string
requis

Corps

application/json
headers
object
requis

Object of header-value pair to update or add

Réponse

Webhook headers patched successfully