acknowledgeNotificationSet method

Future<void> acknowledgeNotificationSet({
  1. String? notificationSetId,
  2. String? $fields,
})

Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.

Request parameters:

notificationSetId - The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.

$fields - Selector specifying which fields to include in a partial response.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<void> acknowledgeNotificationSet({
  core.String? notificationSetId,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (notificationSetId != null) 'notificationSetId': [notificationSetId],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'androidenterprise/v1/enterprises/acknowledgeNotificationSet';

  await _requester.request(
    url_,
    'POST',
    queryParams: queryParams_,
    downloadOptions: null,
  );
}