deleteNotificationSubscription method

Future<void> deleteNotificationSubscription({
  1. required String organizationId,
  2. required String subscriptionId,
})

Deletes the specified subscription from the specified organization.

May throw EntityNotExistsException. May throw ProhibitedStateException. May throw ServiceUnavailableException. May throw UnauthorizedResourceAccessException.

Parameter organizationId : The ID of the organization.

Parameter subscriptionId : The ID of the subscription.

Implementation

Future<void> deleteNotificationSubscription({
  required String organizationId,
  required String subscriptionId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/api/v1/organizations/${Uri.encodeComponent(organizationId)}/subscriptions/${Uri.encodeComponent(subscriptionId)}',
    exceptionFnMap: _exceptionFns,
  );
}