Open BenoitKnecht opened 8 months ago
I can submit a PR for a simple fix that would get the choices from the .actions.PUT
sections returned by the OPTIONS
request when .actions.POST
is missing.
Just wondering: what is the use case for fetching the choices list when there is no possibility anyway to use the choice values to create/edit objects?
Or do I miss something about POST vs PUT
Just wondering: what is the use case for fetching the choices list when there is no possibility anyway to use the choice values to create/edit objects?
Or do I miss something about POST vs PUT
@markkuleinio With POST you create new objects, and with PUT you update existing objects. So fetching choices is useful in that latter case too. :slightly_smiling_face:
Right, so the use case is a user that doesn't have create access but has modify access.
Hey, could someone review (and ideally merge) the PR above (#592)? I'm still hitting this bug whenever I use Ansible to interact with Netbox.
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 usingExpected Behavior
A list of choices is returned.
Observed Behavior