deleteRelatedItem method
Deletes the related item resource under a case.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter caseId :
A unique identifier of the case.
Parameter domainId :
A unique identifier of the Cases domain.
Parameter relatedItemId :
A unique identifier of a related item.
Implementation
Future<void> deleteRelatedItem({
required String caseId,
required String domainId,
required String relatedItemId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/domains/${Uri.encodeComponent(domainId)}/cases/${Uri.encodeComponent(caseId)}/related-items/${Uri.encodeComponent(relatedItemId)}',
exceptionFnMap: _exceptionFns,
);
}