deregisterAdmin method
Removes the user or group from the list of administrators of the private re:Post.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter adminId :
The ID of the admin to remove.
Parameter spaceId :
The ID of the private re:Post to remove the admin from.
Implementation
Future<void> deregisterAdmin({
required String adminId,
required String spaceId,
}) async {
await _protocol.send(
payload: null,
method: 'DELETE',
requestUri:
'/spaces/${Uri.encodeComponent(spaceId)}/admins/${Uri.encodeComponent(adminId)}',
exceptionFnMap: _exceptionFns,
);
}