Hi JoHn-Beer,
It does seem like those functions should exist for completeness. Currently there would be two ways to do this,
Use the JsonEmport tool. You could export the publishers JSON, find the publisher you wished to toggle, change the 'enabled' property appropriately and reimport. Go through the actual runtime manager, like function enablePublisher(xid, enabled) { var publisher = com.serotonin.m2m2.db.dao.PublisherDao.getByXid(xid); publisher.enabled = enabled; com.serotonin.m2m2.Common.runtimeManager.savePublisher(publisher); }And then call it as needed. I'll create a git issue about putting such a function into the script environments' RuntimeManager utility.