updateWorkflow method

Future<Response> updateWorkflow(
  1. String id,
  2. Map<String, dynamic> updatedWorkflowData
)

Update a workflow

Implementation

Future<Response> updateWorkflow(String id, Map<String, dynamic> updatedWorkflowData) async {
  try {
    final response = await _dio.put(
      '/workflows/$id',
      data: updatedWorkflowData,
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to update workflow: ${e.message}');
  }
}