deleteNotificationSubscription method
Deletes the specified subscription from the specified organization.
May throw UnauthorizedResourceAccessException. May throw EntityNotExistsException. May throw ServiceUnavailableException. May throw ProhibitedStateException.
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 {
ArgumentError.checkNotNull(organizationId, 'organizationId');
_s.validateStringLength(
'organizationId',
organizationId,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(subscriptionId, 'subscriptionId');
_s.validateStringLength(
'subscriptionId',
subscriptionId,
1,
256,
isRequired: true,
);
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/api/v1/organizations/${Uri.encodeComponent(organizationId)}/subscriptions/${Uri.encodeComponent(subscriptionId)}',
exceptionFnMap: _exceptionFns,
);
}