diff --git a/netbox/core/api/schema.py b/netbox/core/api/schema.py index 647446434..e9655378d 100644 --- a/netbox/core/api/schema.py +++ b/netbox/core/api/schema.py @@ -292,7 +292,7 @@ class FixWritableNestedSerializerAllowPK(OpenApiSerializerFieldExtension): if direction == 'request' and self.target.nested: return { 'oneOf': [ - build_basic_type(OpenApiTypes.NUMBER), + build_basic_type(OpenApiTypes.INT), schema, ] }