Updating a GFK field via API does not return the new value #12328
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.4.8
Python version
3.10
Steps to Reproduce
curl -H "Authorization: Token $NETBOX_TOKEN" -H "Content-type: application/json" $NETBOX_SCHEME://$NETBOX_URL/api/ipam/ip-addresses/1/ -X PATCH --data '{"assigned_object_type": "ipam.fhrpgroup", "assigned_object_id":1}'
Expected Behavior
assigned_object
in the response is not null.Observed Behavior
assigned_object
is null:This is only the case if the assigned_object was not assigned before the request. Changing or removing the assigned object gives the correct response.
The text was updated successfully, but these errors were encountered: