bulkDeleteTasksWithHttpInfo method
Delete multiple tasks in one call.
Replaces the legacy BFF that looped DELETE /v1/tasks/:id. Per-id errors are collected in failed rather than failing the whole call — partial success is the norm.
Note: This method returns the HTTP Response.
Parameters:
- BulkDeleteTasksRequest bulkDeleteTasksRequest (required):
Implementation
Future<Response> bulkDeleteTasksWithHttpInfo(BulkDeleteTasksRequest bulkDeleteTasksRequest,) async {
// ignore: prefer_const_declarations
final path = r'/v1/tasks/delete';
// ignore: prefer_final_locals
Object? postBody = bulkDeleteTasksRequest;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}