registerAdmin method
Adds a user or group to 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 administrator.
Parameter spaceId :
The ID of the private re:Post.
Implementation
Future<void> registerAdmin({
required String adminId,
required String spaceId,
}) async {
await _protocol.send(
payload: null,
method: 'POST',
requestUri:
'/spaces/${Uri.encodeComponent(spaceId)}/admins/${Uri.encodeComponent(adminId)}',
exceptionFnMap: _exceptionFns,
);
}