deleteWebhookByIdWithHttpInfo method
Removes one of the caller org's webhook endpoints and answers 204 with no body.
Removes one of the caller org's webhook endpoints and answers 204 with no body. Delivery stops immediately and the endpoint's signing secret is gone with it; its recorded delivery history goes too. An id another org owns reads as not found.
Note: This method returns the HTTP Response.
Parameters:
- String id (required):
Implementation
Future<Response> deleteWebhookByIdWithHttpInfo(String id,) async {
// ignore: prefer_const_declarations
final path = r'/v1/webhook/{id}'
.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,
'DELETE',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}