Owner field missing from several REST API serializers #11941

Closed
opened 2025-12-29 21:51:45 +01:00 by adam · 1 comment
Owner

Originally created by @mrmrcoleman on GitHub (Dec 20, 2025).

Originally assigned to: @jeremystretch on GitHub.

NetBox Edition

NetBox Community

NetBox Version

v4.5-beta

Python Version

3.12

Steps to Reproduce

  1. Create an Owner (Users > Owners > Add)
  2. Assign the Owner to a Device (Devices > Devices > Edit a device > set Owner field)
  3. Save the device
  4. Fetch the device via REST API: GET /api/dcim/devices/{id}/
  5. Observe the JSON response

Expected Behavior

The API response should include the owner field with the assigned owner's details, similar to how it appears in DeviceSerializer.fields:

"owner": {
"id": 1,
"url": "...",
"display": "Network Operations Team",
"name": "Network Operations Team",
"description": ""
}

Observed Behavior

The owner field is absent from the API response.

Originally created by @mrmrcoleman on GitHub (Dec 20, 2025). Originally assigned to: @jeremystretch on GitHub. ### NetBox Edition NetBox Community ### NetBox Version v4.5-beta ### Python Version 3.12 ### Steps to Reproduce 1. Create an Owner (Users > Owners > Add) 2. Assign the Owner to a Device (Devices > Devices > Edit a device > set Owner field) 3. Save the device 4. Fetch the device via REST API: GET /api/dcim/devices/{id}/ 5. Observe the JSON response ### Expected Behavior The API response should include the `owner` field with the assigned owner's details, similar to how it appears in DeviceSerializer.fields: "owner": { "id": 1, "url": "...", "display": "Network Operations Team", "name": "Network Operations Team", "description": "" } ### Observed Behavior The `owner` field is absent from the API response.
adam added the type: bugstatus: acceptednetboxbetaseverity: medium labels 2025-12-29 21:51:45 +01:00
adam closed this issue 2025-12-29 21:51:45 +01:00
Author
Owner

@jeremystretch commented on GitHub (Dec 22, 2025):

I've found that the owner field has likely been mistakenly omitted from API serializers for device and VM components as well.

@jeremystretch commented on GitHub (Dec 22, 2025): I've found that the `owner` field has likely been mistakenly omitted from API serializers for device and VM components as well.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11941