updateChannelReadMarker method

Future<UpdateChannelReadMarkerResponse> updateChannelReadMarker({
  1. required String channelArn,
  2. required String chimeBearer,
})

The details of the time when a user last read messages in a channel.

May throw BadRequestException. May throw ConflictException. May throw ForbiddenException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter channelArn : The ARN of the channel.

Parameter chimeBearer : The ARN of the AppInstanceUser or AppInstanceBot that makes the API call.

Implementation

Future<UpdateChannelReadMarkerResponse> updateChannelReadMarker({
  required String channelArn,
  required String chimeBearer,
}) async {
  final headers = <String, String>{
    'x-amz-chime-bearer': chimeBearer.toString(),
  };
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri: '/channels/${Uri.encodeComponent(channelArn)}/readMarker',
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return UpdateChannelReadMarkerResponse.fromJson(response);
}