code: function() {
              var that = this;
  
              return api.execute("put:alert/"+this.get("id")+"/toggle")
              .then(function(_data) {
                  that.set("enabled", _data.enabled);
                  return that;
              });
          }
docs: Toggle alert