Use update_properties to set properties on detached objects.