postWebhookByIdSecretWithHttpInfo method

Future<Response> postWebhookByIdSecretWithHttpInfo(
  1. String id
)

Mints a NEW HMAC signing secret for the endpoint and answers the endpoint WITH it — the only other response besides create that ever carries a secret.

Mints a NEW HMAC signing secret for the endpoint and answers the endpoint WITH it — the only other response besides create that ever carries a secret. The old secret stops working the instant this returns: every subsequent delivery signs with the new one, with no overlap window. Call it when the subscriber is ready to swap the value on its side, not before.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> postWebhookByIdSecretWithHttpInfo(String id,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/webhook/{id}/secret'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}