rotateWebhookSecret method

Future<InventoryWebhookWithSecret> rotateWebhookSecret(
  1. String webhookId
)

Ein neues Secret fuer denselben Webhook. Ab der Antwort gilt nur noch das neue (keine Uebergangsfrist): erst speichern, dann weiterarbeiten.

Implementation

Future<InventoryWebhookWithSecret> rotateWebhookSecret(String webhookId) async {
  const name = Aufrufe.rotateWebhookSecret;
  return _mitSecret(name, await _transport.call(name, {'webhookId': kennung(name, 'webhookId', webhookId)}));
}