@@ -259,13 +259,38 @@ exports.explode = function explode(public_id, callback, options = {}) {
259259 } ) ;
260260} ;
261261
262- // options may include 'exclusive' (boolean) which causes clearing this tag from all other resources
262+ /**
263+ *
264+ * @param {String } tag The tag or tags to assign. Can specify multiple
265+ * tags in a single string, separated by commas - "t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11".
266+ *
267+ * @param {Array } public_ids A list of public IDs (up to 1000) of assets uploaded to Cloudinary.
268+ *
269+ * @param {Function } callback Callback function
270+ *
271+ * @param {Object } options Configuration options may include 'exclusive' (boolean) which causes
272+ * clearing this tag from all other resources
273+ * @return {Object }
274+ */
263275exports . add_tag = function add_tag ( tag , public_ids = [ ] , callback , options = { } ) {
264276 const exclusive = utils . option_consume ( "exclusive" , options ) ;
265277 const command = exclusive ? "set_exclusive" : "add" ;
266278 return call_tags_api ( tag , command , public_ids , callback , options ) ;
267279} ;
268280
281+
282+ /**
283+ * @param {String } tag The tag or tags to remove. Can specify multiple
284+ * tags in a single string, separated by commas - "t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11".
285+ *
286+ * @param {Array } public_ids A list of public IDs (up to 1000) of assets uploaded to Cloudinary.
287+ *
288+ * @param {Function } callback Callback function
289+ *
290+ * @param {Object } options Configuration options may include 'exclusive' (boolean) which causes
291+ * clearing this tag from all other resources
292+ * @return {Object }
293+ */
269294exports . remove_tag = function remove_tag ( tag , public_ids = [ ] , callback , options = { } ) {
270295 return call_tags_api ( tag , "remove" , public_ids , callback , options ) ;
271296} ;
0 commit comments