When attempting to create a new IP and set custom fields using a POST request to the API, the custom fields are being created as null, even when values are provided in the request body #13746
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.6.1
Python version
3.9
Steps to Reproduce
Before encountering this issue, we upgraded our NetBox installation from version 2.6.4 to 3.6.1, following the guidelines provided in the official documentation.
POST Response:
Note that the custom fields are returned as null in the response, indicating that they were not set correctly during the POST request.
Now initiate a PATCH request to modify the allocated IP with new custom field values using a command similar to:
PATCH Response:
Expected Behavior
The custom fields should have accepted and stored the values provided in the initial POST request, instead of being created as null.
Observed Behavior
The custom fields are created as null during the POST request, even though values were provided in the request body. However, the subsequent PATCH request can successfully modify these fields with new values.
The text was updated successfully, but these errors were encountered: