How to change the content of a text property of an instance

You need to use the setProperties(obj) method.

InstanceNode.setProperties({'propertyName': 'propertyValue'});