Devices - and other resources that can support tags - can have a maximum of 100 entries. (What I said about keys and values also applies to tags on other resource types as well.)
Two key differences about device tags vs. others …
- Device tags can support multiple values per the same tag while other resources support one value per tag key.
- Because of this, if you are using the REST API directly, you will find that device tags are treated as an array of objects with
key
and value` properties …
{
"tags": [{"key": "foo", "value": "bar"}]
}
… whereas other tag-supported resources store the tags under an object, where the tag keys are object keys and the tag values are the values per key.
{
"viewTags": {
"foo": "bar"
}
}