About Tags

About Tags

Contents

Introduction

The JavaScript SDK allows you to retrieve, create, and delete tags. The following cde samples can help you get started with tags.

Examples

deleteTags

deleteTags method allows you to remove tags.

Code Sample

thingspace.cloud.deleteTags({
		uri: uri, //retrieved from fullview or metadata calls
		success: function(resp) {
		
		},
	});
```	


### getTags

[`getTags`](../../JavaScript_Reference/Tags/) method allows you to add a tag to a file or folder.


**Code Sample**

```javascript
thingspace.cloud.getTags({
		path: path,
		success: function(resp) {
		
		},
	});

updateTags

updateTags method allows you to update a tag for a file or folder.

Code Sample

thingspace.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.