retryFailedPushNotifications method

Future<Object?> retryFailedPushNotifications({
  1. required Object id,
  2. Map<String, Object?>? query,
  3. Object? body,
  4. Map<String, String>? headers,
})

POST /{version}/notifications/push/campaigns/{Id}/retry-failed

Sends the failed recipients of a push campaign again — only the rows whose send failed, never one the provider accepted — each as a new attempt with the same notification id. Body: idempotencyKey (required, at most 64 characters; the same key again sends nothing and returns the first answer with replayed: true), and optionally databaseIntegrationId, notificationIds, includeAmbiguous (also retry rows whose failure is Ambiguous — may send a duplicate) and categories (Transient, Permanent, Unknown). Answers {retryRequestId, selected, skipped, replayed, warning?}.

Implementation

Future<Object?> retryFailedPushNotifications(
    {required Object id,
    Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route: '/{version}/notifications/push/campaigns/{Id}/retry-failed',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: <String, Object?>{'Id': id},
  );
}