updateWebhookHeadersWithHttpInfo method

Future<Response> updateWebhookHeadersWithHttpInfo(
  1. String webhookId,
  2. WebhookHeaders webhookHeaders
)

Update a webhook request headers

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateWebhookHeadersWithHttpInfo(String webhookId, WebhookHeaders webhookHeaders,) async {
  // ignore: prefer_const_declarations
  final path = r'/webhooks/{webhookId}/headers'
    .replaceAll('{webhookId}', webhookId);

  // ignore: prefer_final_locals
  Object? postBody = webhookHeaders;

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

  const contentTypes = <String>['application/json'];


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