Skip to content

netbox.circuits.circuits.create how do I get this to take custom fields. #557

Answered by markkuleinio
Bosborne96 asked this question in Q&A
Discussion options

You must be logged in to vote

When creating an object and populating the custom field, you do it with a dictionary like this:

device = netbox.dcim.devices.create(name="test", site_id=123, custom_fields={"field_name": "Field Contents"})

Replies: 1 comment 1 reply

Comment options

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

Answer selected by Bosborne96
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