   else
 
     remote.api.JStackTemplate.create {
-      title, template, credentials
+      title, template, credentials, rawContent
       templateDetails, config, description
     }, callback
 

module.exports = updateStackTemplate = (data, callback) ->

  { template, templateDetails, credentials, description
    title, stackTemplate, machines, config } = data

  title or= 'Default stack template'
  config ?= stackTemplate.config ? {}


    dataToUpdate = if machines \
      then { machines, config } else {
        title, template, credentials, rawContent
        templateDetails, config, description
      }

