Skip to content

Error while setting tenant group to null via API #5786

@pgnuta

Description

@pgnuta

Environment

  • Python version: v3.6.8
  • NetBox version: v2.10.4

Attempting to save a tenant object via the API with the group property set to null results in an error. The Swagger documentation specifies that this property is nullable.

Steps to Reproduce

  1. Send the following JSON body via PATCH method to $netbox_url/api/tenancy/tenants/$tenant_id/ :
    { "group": null }

Expected Behavior

200 OK response and a JSON object containing the updated tenant object.

Observed Behavior

400 Bad Request response and an error message:
{ "group": [ "This field may not be null." ] }

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions