Closes #362 - Make API data objects immutable

fixed in 7f1dc8162999