Closes #362 - Make API data objects immutable

I don't think these changes have to be made, was just commenting