The Node.js SDK allows you to retrieve, create, and delete tags. The following cde samples can help you get started with tags.
Use this code sample to remove tags.
Code Sample
cloud.deleteTags({
uri: uri, //retrieved from fullview or metadata calls
success: function(resp) {
},
});
```
### getTags
This code sample results in the listing of all tags for a file or folder.
**Code Sample**
```javascript
cloud.getTags({
path: path,
success: function(resp) {
},
});
Use this code sample to update or add new tags.
Code Sample
cloud.updateTags({
uri: uri, //retrieved from fullview or metadata calls
tags: "cat,animal,fur",
success: function(resp) {
},
});
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.