created & last_updated fields missing from some REST API calls #5940

Closed
opened 2025-12-29 19:34:31 +01:00 by adam · 2 comments
Owner

Originally created by @jasonyates on GitHub (Jan 13, 2022).

Originally assigned to: @jasonyates on GitHub.

NetBox version

3.1.6-dev

Python version

3.8

Steps to Reproduce

A number of REST API calls are missing created & last_updated fields in their response. No functional impact however for parity across all API calls perhaps it would be useful to have the fields returned consistently.

Examples:
/api/dcim/virtual-chassis/
/api/dcim/cables/
/api/dcim/power-panels/
/api/dcim/rack-reservations/ (Has created but not last_updated)

Expected Behavior

created & last_updated fields are returned for all relevant objects

Observed Behavior

created & last_updated are missing some some objects

Originally created by @jasonyates on GitHub (Jan 13, 2022). Originally assigned to: @jasonyates on GitHub. ### NetBox version 3.1.6-dev ### Python version 3.8 ### Steps to Reproduce A number of REST API calls are missing created & last_updated fields in their response. No functional impact however for parity across all API calls perhaps it would be useful to have the fields returned consistently. Examples: /api/dcim/virtual-chassis/ /api/dcim/cables/ /api/dcim/power-panels/ /api/dcim/rack-reservations/ (Has created but not last_updated) ### Expected Behavior created & last_updated fields are returned for all relevant objects ### Observed Behavior created & last_updated are missing some some objects
adam added the type: bugstatus: accepted labels 2025-12-29 19:34:31 +01:00
adam closed this issue 2025-12-29 19:34:31 +01:00
Author
Owner

@jasonyates commented on GitHub (Jan 13, 2022):

Happy to submit a PR for this.

If accepted, presumably this should be in feature not develop branch due to API changes?

@jasonyates commented on GitHub (Jan 13, 2022): Happy to submit a PR for this. If accepted, presumably this should be in feature not develop branch due to API changes?
Author
Owner

@jeremystretch commented on GitHub (Jan 13, 2022):

Given that it's a bug, and the fix would restore the API's intended functionality, it's fine to handle in the develop branch. (New features or functionality would need to be implemented in feature.)

Thanks for volunteering!

@jeremystretch commented on GitHub (Jan 13, 2022): Given that it's a bug, and the fix would restore the API's _intended_ functionality, it's fine to handle in the `develop` branch. (New features or functionality would need to be implemented in `feature`.) Thanks for volunteering!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5940