Skip to content
Discussion options

You must be logged in to vote

First you need to create the tag:

nb.extras.tags.create({"name": "test", "slug": "test"})

Then you should be able to use:

device.tags.append({"name": "test"})
device.save()

https://majornetwork.net/2021/01/using-tags-with-pynetbox-in-netbox-2-9/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pbolcar
Comment options

Answer selected by pbolcar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants