CreatePartTypeModel
Version: v10.1.0
Supporting model
A request/response or nested model — not a stored DynamoDB entity.
Overview
CreatePartType model for creating part type fields
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pk | str | ✅ | — | — |
id | str | ✅ | — | — |
tenant_id | str | ❌ | — | — |
name | str | ✅ | — | — |
category | str | ❌ | — | — |
tenant_count | int | ❌ | — | — |
prod_count | int | ❌ | — | — |
count_date | str | ❌ | — | — |
category_id | str | ❌ | — | — |
side | str | ❌ | — | — |
side_id | str | ❌ | — | — |
direction | str | ❌ | — | — |
direction_id | str | ❌ | — | — |
is_hidden | bool | ❌ | False | — |
full_name | str | ❌ | — | — |
abbreviation | str | ❌ | — | — |
description | str | ❌ | — | — |
localised_name | dict | ❌ | — | — |
part_kind | PartKindEnum (UNIT, KIT, ASSEMBLY) | ❌ | UNIT | PartKindEnum model |
thumbnail_url | str | ❌ | — | — |
synonyms | List[str] | ❌ | — | — |
part_attributes | List[dict] | ❌ | [] | — |
is_discontinued | bool | ❌ | False | — |
discontinuation_reason | str | ❌ | — | — |
is_system_wide | bool | ❌ | False | — |
is_conjoined_part_type | bool | ❌ | False | — |
components | List[Any] | ❌ | [] | — |
conjoined_part_type_reconciliation_options | List[Any] | ❌ | [] | — |
sales_channel_category_mapping | List[Any] | ❌ | [] | — |
old_master_part_type_id | str | ❌ | — | — |
type | str | ❌ | PART_TYPE | — |
is_deleted | bool | ❌ | False | — |
deleted_at | str | ❌ | — | — |
part_type_schema_version | str | ❌ | — | — |
weight_g | float | ❌ | — | — |
width_mm | float | ❌ | — | — |
height_mm | float | ❌ | — | — |
length_mm | float | ❌ | — | — |
meta_data | dict | ❌ | — | — |
created_at | str | ❌ | — | — |
updated_at | str | ❌ | — | — |
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /customPartType | — | src/part_type/create_part_type.py |
Change history
v10.1.0 · 2026-06-04 · Cian (shared account) · cde1fe350
Add VPM parity history and smoke tests
- Added optional field
meta_data.
v10.0.0 · 2025-12-23 · Cian (shared account) · 2d463e5c8
fx
- Field
tenant_idtype changed: str → Optional[str] (breaking). - Field
tenant_idbecame optional.
v9.0.0 · 2025-12-07 · Cian (shared account) · 17b698153
fx
- Removed field
height(breaking). - Removed field
height_metric(breaking). - Removed field
length(breaking). - Removed field
length_metric(breaking). - Removed field
weight(breaking). - Removed field
weight_metric(breaking). - Removed field
width(breaking). - Removed field
width_metric(breaking). - Added optional field
height_mm. - Added optional field
length_mm. - Added optional field
weight_g. - Added optional field
width_mm.
v8.1.0 · 2025-12-06 · Olaniyi Ajayi · 7daaaa04f
Remove all changes from part-type-dm branch merge
- Added optional field
height. - Added optional field
height_metric. - Added optional field
length. - Added optional field
length_metric. - Added optional field
weight. - Added optional field
weight_metric. - Added optional field
width. - Added optional field
width_metric.
v8.0.0 · 2025-12-03 · Olaniyi Ajayi · 14cea189c
Revert "Part type dimension"
- Removed field
height(breaking). - Removed field
height_metric(breaking). - Removed field
length(breaking). - Removed field
length_metric(breaking). - Removed field
weight(breaking). - Removed field
weight_metric(breaking). - Removed field
width(breaking). - Removed field
width_metric(breaking).
v7.1.0 · 2025-12-02 · Olaniyi Ajayi · 92df74801
fx
- Added optional field
height. - Added optional field
height_metric. - Added optional field
length. - Added optional field
length_metric. - Added optional field
weight. - Added optional field
weight_metric. - Added optional field
width. - Added optional field
width_metric.
v7.0.0 · 2025-05-25 · Cian (shared account) · 2ad105ac8
fx
- Removed field
sales_channels(breaking). - Added optional field
sales_channel_category_mapping.
v6.0.0 · 2025-04-10 · Olaniyi Ajayi · bb3fceb55
vpm complete
- Removed field
part_type_id(breaking). - Removed field
sk(breaking). - Added required field
id.
v5.0.1 · 2025-04-03 · Olaniyi Ajayi · 05f7cef33
updates
- Field
is_conjoined_part_typedefault changed: None → False. - Field
is_discontinueddefault changed: None → False. - Field
is_system_widedefault changed: None → False.
v5.0.0 · 2025-03-27 · Cian (shared account) · f7e363461
ok
- Field
directiontype changed: Optional[DirectionEnum] → Optional[str] (breaking). - Field
directionenum valueFRONTremoved (breaking). - Field
directionenum valueREARremoved (breaking). - Field
part_kinddefault changed: None → 'UNIT'. - Field
sidetype changed: Optional[SideEnum] → Optional[str] (breaking). - Field
sideenum valueLEFTremoved (breaking). - Field
sideenum valueRIGHTremoved (breaking).
v4.0.0 · 2025-03-26 · Olaniyi Ajayi · a40c01bad
updated part type model
- Added optional field
abbreviation. - Added optional field
components. - Added optional field
conjoined_part_type_reconciliation_options. - Added optional field
count_date. - Added optional field
created_at. - Added optional field
deleted_at. - Added optional field
description. - Added optional field
discontinuation_reason. - Added optional field
full_name. - Added optional field
is_conjoined_part_type. - Added optional field
is_deleted. - Added optional field
is_discontinued. - Added optional field
is_system_wide. - Added optional field
localised_name. - Added optional field
old_master_part_type_id. - Added optional field
part_attributes. - Added optional field
part_kind. - Added optional field
part_type_schema_version. - Added optional field
prod_count. - Added optional field
sales_channels. - Added optional field
synonyms. - Added optional field
tenant_count. - Added optional field
thumbnail_url. - Added optional field
type. - Added optional field
updated_at. - Field
directiontype changed: Optional[str] → Optional[DirectionEnum] (breaking). - Field
directionenum valueFRONTadded. - Field
directionenum valueREARadded. - Field
sidetype changed: Optional[str] → Optional[SideEnum] (breaking). - Field
sideenum valueLEFTadded. - Field
sideenum valueRIGHTadded.
v3.0.0 · 2025-03-26 · Olaniyi Ajayi · bc920c479
fx
- Field
nametype changed: Optional[str] → str (breaking). - Field
namebecame required (breaking).
v2.0.0 · 2025-03-26 · Olaniyi Ajayi · fe496ea86
updated create custom part type
- Removed field
abbreviation(breaking). - Removed field
components(breaking). - Removed field
conjoined_part_type_reconciliation_options(breaking). - Removed field
description(breaking). - Removed field
discontinuation_reason(breaking). - Removed field
full_name(breaking). - Removed field
is_conjoined_part_type(breaking). - Removed field
is_discontinued(breaking). - Removed field
is_system_wide(breaking). - Removed field
localised_name(breaking). - Removed field
part_attributes(breaking). - Removed field
part_category(breaking). - Removed field
part_category_id(breaking). - Removed field
part_kind(breaking). - Removed field
sales_channels(breaking). - Removed field
synonyms(breaking). - Removed field
thumbnail_url(breaking). - Added optional field
category. - Added optional field
category_id. - Added optional field
direction_id. - Added optional field
side_id.
v1.0.0 · 2025-03-26 · Olaniyi Ajayi · fb5bfc514
part type and make
- Initial version.
Generated from
dismantly-backend/Microservices/VehicleAndPartMaster/dependencies/models.py. Do not edit by hand.