updateEndpointsBatch method

Future<UpdateEndpointsBatchResponse> updateEndpointsBatch({
  1. required String applicationId,
  2. required EndpointBatchRequest endpointBatchRequest,
})

Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application. You can also use this operation to define custom attributes for a batch of endpoints. If an update includes one or more values for a custom attribute, Amazon Pinpoint replaces (overwrites) any existing values with the new values.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Parameter applicationId : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Implementation

Future<UpdateEndpointsBatchResponse> updateEndpointsBatch({
  required String applicationId,
  required EndpointBatchRequest endpointBatchRequest,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(endpointBatchRequest, 'endpointBatchRequest');
  final response = await _protocol.sendRaw(
    payload: endpointBatchRequest,
    method: 'PUT',
    requestUri: '/v1/apps/${Uri.encodeComponent(applicationId)}/endpoints',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return UpdateEndpointsBatchResponse(
    messageBody: MessageBody.fromJson($json),
  );
}