pynetbox version
v7.5.0
NetBox version
v4.1.0
Python version
3.12
Steps to Reproduce
Using the following code, no change is made and the script just outputs False:
import pynetbox
instance = 'urlgoeshere'
token = 'tokengoeshere'
nb = pynetbox.api(url=f'https://{instance}/', token=token)
existing_user = nb.users.users.get(username='some.user')
user_update_payload = {'password': 'SomeNewPassword1234'}
result = existing_user.update(user_update_payload)
print(result)
Expected Behavior
The user's password should get updated.
Observed Behavior
No change was made to the user.
Enabling debugging for the underlying http library shows that no PATCH request is even attempted.
PATCH manually via curl for the user works as expected (so netbox behaves correctly, pynetbox does not)
pynetbox version
v7.5.0
NetBox version
v4.1.0
Python version
3.12
Steps to Reproduce
Using the following code, no change is made and the script just outputs
False:Expected Behavior
The user's password should get updated.
Observed Behavior
No change was made to the user.
Enabling debugging for the underlying http library shows that no PATCH request is even attempted.
PATCHmanually via curl for the user works as expected (so netbox behaves correctly, pynetbox does not)