API: cannot create virtual machine due to cluster required error while filled in. #6968
-
NetBox versionv2.9.8 Python version3.9 Steps to ReproduceMake a POST api call to /virtualization/virtual-machines/ with data down below.
Expected BehaviorThe virtual machine to be created, because the required fields name and cluster are filled in. Observed BehaviorThe cluster field is required is the error it gives. This is some weird behaviour since the name in the request is found, but the cluster is not. Client error: If i remove the name field from the request, it will also show: the name field is required. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Can you try and reproduce your request against demo.netbox.dev? If reproducable there, please post the curl request other people can try. Your current request is from a higher level language then the raw json that goes over the wire. |
Beta Was this translation helpful? Give feedback.
-
This isn't JSON data. Please see the REST API documentation for examples of valid API requests. |
Beta Was this translation helpful? Give feedback.
This isn't JSON data. Please see the REST API documentation for examples of valid API requests.