Commits

MailChimp committed 751777e

Update templates/update documentation to treat nulls as undefined values

Comments (0)

Files changed (3)

     port:   443,
     prefix: '/api/1.0/',
     method: 'POST',
-    headers: {'Content-Type': 'application/json', 'User-Agent': 'Mandrill-Node/1.0.19'}
+    headers: {'Content-Type': 'application/json', 'User-Agent': 'Mandrill-Node/1.0.20'}
 }
 
 class exports.Mandrill
         @master.call('templates/info', params, onsuccess, onerror)
 
     ###
-    Update the code for an existing template
+    Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
     @param {Object} params the hash of the parameters to pass to the request
     @option params {String} name the immutable name of an existing template
     @option params {String} from_email the new default sending address
     method: 'POST',
     headers: {
       'Content-Type': 'application/json',
-      'User-Agent': 'Mandrill-Node/1.0.19'
+      'User-Agent': 'Mandrill-Node/1.0.20'
     }
   };
 
     };
 
     /*
-        Update the code for an existing template
+        Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.
         @param {Object} params the hash of the parameters to pass to the request
         @option params {String} name the immutable name of an existing template
         @option params {String} from_email the new default sending address
   "author": "Mandrill Devs <community@mandrill.com> (http://mandrill.com)",
   "name": "mandrill-api",
   "description": "The official API client for the Mandrill email as a service product.",
-  "version": "1.0.19",
+  "version": "1.0.20",
   "homepage": "https://bitbucket.org/mailchimp/mandrill-api-node",
   "repository": {
     "type": "git",