pynetbox
                                
                                 pynetbox copied to clipboard
                                
                                    pynetbox copied to clipboard
                            
                            
                            
                        Choices are not returned when the API token can PUT but not POST on an endpoint
pynetbox version
v7.1.0
NetBox version
v3.4.3
Python version
3.9
Steps to Reproduce
Using an API token that cannot POST on the /dcim/devices/ endpoint for instance, try getting choices using
nb.dcim.devices.choices()
Expected Behavior
A list of choices is returned.
Observed Behavior
ValueError: Unexpected format in the OPTIONS response at https://netbox.example.com/api/dcim/devices