 
       meta            : require 'bongo/bundles/meta'
 
-      group           : String
+      group           :
+        type          : String
+        required      : yes
 
       template        :
         content       : String


    success: (client, data, callback) ->

      # It's not allowed to change a stack template group or owner
      delete data.originId
      delete data.group

        # Keep the existing template details if not provided
        if not templateDetails?
          data.template.details = @getAt 'template.details'

        # Keep last updater info in the template details
        data.template.details.lastUpdaterId = delegate.getId()

      @update { $set: data }, (err) -> callback err

