code: function createCoggle(title, callback){
      if(typeof title !== 'string')
          throw new Error("title must be a string");
      // callback should accept(Error, diagram)
      var self = this;
      var body = {
        title:title
      };
      this.post('/api/1/diagrams', '', body, function(err, body){
        if(err)
          return callback(new Error('failed to create coggle: ' + err.message));
        return callback(false, new CoggleApiDiagram(self, body));
      });
    }
docs: !jsjsdoc
  
  doc.CoggleApi.createDiagram = {
  $brief: "Create a new Coggle diagram.",
  $parameters: {
  title: {
  $type: "String",
  $brief: "Title for the created diagram."
  },
  callback: {
  $type: "Function",
  $brief: "Callback accepting (Error, CoggleApiDiagram)",
  }
  }
  }