Skip to main content

tag

Tagging organizes devices and objects to simplify routing and manage large DisplayNet systems. The tag command manages the tags themselves; to assign tags to devices and objects, see devicetag.

Command TypeDisplayNet
Minimum Version3.6.x

Usage

tag list
tag add <tag_name>
tag rename <old_tag_name> <new_tag_name>
tag delete <tag_name>
tag forcedelete <tag_name>

Subcommands

SubcommandDescription
listReturns all tags in the DisplayNet system
addAdds a new tag
renameRenames a tag
deleteDeletes a tag. Returns an error if the tag is still assigned to at least one device or group
forcedeleteDeletes a tag and removes it from all devices and groups

Arguments

ArgumentRequiredDescription
tag_nameYesA valid tag name. Spaces are not supported. Use underscores or CamelCase instead.

Examples

Create and rename a tag
tag add conference_sources
tag rename conference_sources boardroom_sources
Delete a tag that is still in use
tag forcedelete boardroom_sources

Return value

tag list
{
"status": "SUCCESS",
"request_id": null,
"result": {
"tags": [
{
"TagItemId": 3,
"TagName": "tagName1"
},
{
"TagItemId": 1,
"TagName": "this_is_a_long_tag_name_with_underscores"
}
]
},
"error": null
}

Notifications

Tag changes broadcast a DN_NOTIFICATION with tag_new, tag_rename, or tag_delete results:

tag add newTagName123
{
"status": "DN_NOTIFICATION",
"request_id": null,
"result": {
"tag_new": [
{
"TagItemId": 53,
"TagName": "newTagName123"
}
]
},
"error": null
}

REST API

Endpoint typeDisplayNet API command
AddressPOST /api/displaynet/<operation>, or name the operation in the body of a POST /api/displaynet. See Sending commands.
RoleUser
SubcommandOperationParameters
addtag_addname
deletetag_deletename
forcedeletetag_forcedeletename
listtag_list
renametag_renamename new_name

See also

  • devicetag: assign tags to devices, walls, multiviews, and presets
  • taggroup: group tags together