updateWebhookEndpoint method
Future<TUpdateWebhookEndpointResponse>
updateWebhookEndpoint({
- required TUpdateWebhookEndpointBody input,
Update a webhook endpoint for an organization.
Sign the provided TUpdateWebhookEndpointBody with the client's stamp function and submit the request (POST /public/v1/submit/update_webhook_endpoint).
See also: stampUpdateWebhookEndpoint.
Implementation
Future<TUpdateWebhookEndpointResponse> updateWebhookEndpoint({
required TUpdateWebhookEndpointBody input,
}) async {
final body = packActivityBody(
bodyJson: input.toJson(),
fallbackOrganizationId: input.organizationId ??
config.organizationId ??
(throw Exception(
"Missing organization ID, please pass in a sub-organizationId or instantiate the client with one.")),
activityType: 'ACTIVITY_TYPE_UPDATE_WEBHOOK_ENDPOINT',
);
return await request<Map<String, dynamic>, TUpdateWebhookEndpointResponse>(
"/public/v1/submit/update_webhook_endpoint",
body,
(json) => TUpdateWebhookEndpointResponse.fromJson(
transformActivityResponse(json, 'UpdateWebhookEndpoint')));
}