API and Tests to update Attribute