redeliver method

ACTION: redeliver

using a path like this: https://api.planningcenteronline.com/webhooks/v2/subscriptions/1/events/1/redeliver

data can be a JSON String, or JSON serializable Object that follows the JSON:API specifications. The PlanningCenterApiData helper class has been provided for just such a purpose.

Details: PlanningCenter API docs do not have a description for this action.

Implementation

Future<PlanningCenterApiResponse> redeliver(Object data) async {
  if (id == null) {
    return PlanningCenterApiError.messageOnly(
      'Actions must be called on items that already exist on the remote server',
    );
  }
  var url = '$apiEndpoint/redeliver';
  return api.call(url, verb: 'post', data: data, apiVersion: apiVersion);
}