Can't create interface Tagged VLANs via API #13584
-
NetBox versionv3.3.4 Python version3.8 Steps to ReproduceI have a device already created with all of its physical interfaces. I'm trying to update (Patch method) one of those interfaces to add the Tagged VLANs that it's supposed to have. Expected BehaviorTagged VLANs (and the other items) are added to the interface Observed BehaviorRequest fails with the following Exception: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
As the error says, the tagged_vlans attribute should be a list of primary key values (integers), not dicts. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for clarifying. Looking at the API docs in the responses section it displays the entire VLAN Object in a dictionary hence the confusion on my part (especially since it works for all other items). |
Beta Was this translation helpful? Give feedback.
-
|
Understandable, thank you very much for your timely assistance! |
Beta Was this translation helpful? Give feedback.


As the error says, the tagged_vlans attribute should be a list of primary key values (integers), not dicts.