Updates a door record.
The following fields are non-editable.
| Field | Description |
|---|---|
id |
The door identifier |
image_id |
The image identifier |
suffix_id |
The suffix identifier |
name |
The name of the door |
filter_name |
Door's filter name |
suffix_name |
Door's suffix name |
is_outsourced |
Is the door outsourced |
is_advanced |
Is the door advanced |
minimum_width |
Minimum width required for the door |
maximum_width |
Maximum width required for the door |
minimum_height |
Minimum height required for the door |
maximum_height |
Maximum height required for the door |
minimum_drawer_height |
Minimum drawer height required for the door |
minimum_border_width_top |
Minimum border width top required for the door |
minimum_border_width_bottom |
Minimum border width bottom required for the door |
minimum_border_width_left |
Minimum border width left required for the door |
minimum_border_width_right |
Minimum border width right required for the door |
default_border_width_top |
Default border width top for the door |
default_border_width_bottom |
Default border width bottom for the door |
default_border_width_left |
Default border width left for the door |
default_border_width_right |
Default border width right for the door |
minimum_distance_top_bottom |
Minimum distance between top and bottom edge of the door |
minimum_distance_left_right |
Minimum distance between left and right edge of the door |
minimum_rails_horizontal_height |
Minimum horizontal height for the rails |
maximum_rails_horizontal_height |
Maximum horizontal height for the rails |
minimum_rails_vertical_width |
Minimum vertical width for the rails |
maximum_rails_vertical_width |
Maximum vertical width for the rails |
default_rails_horizontal_height |
Default horizontal height for the rails |
default_rails_vertical_width |
Default vertical width for the rails |
The following fields are editable through the update api.
| Field | Description |
|---|---|
item_code |
The item code of the door |
handling_cost |
The handling cost of the door |
area_handling_cost |
The area handling cost of the door |
machining_cost |
The machining cost of the door |
area_machining_cost |
The area machining cost of the door |
unit_cost |
The unit cost of the door |
assembly_cost |
The assembly cost of the door |
area_assembly_cost |
The area assembly cost of the door |
default_edge_finish_top |
The default edge finish for the top edge of the door |
default_edge_finish_bottom |
The default edge finish for the bottom edge of the door |
default_edge_finish_left |
The default edge finish for the left edge of the door |
default_edge_finish_right |
The default edge finish for the right edge of the door |
default_edge_finish_join |
The default edge finish for the join edge of the door |
is_default_edge_finish |
Is the default edge finish locked |
is_locked_edge_finish |
Is the edge finish locked |
is_hidden |
Is the door hidden |
This returns an updated Door record.
Request
curl -X PUT 'https://cabinetry.online/api/product/doors/709' -H 'X-GC-API-KEY: xxxxxxxxxxxx'
Body
{
"item_code": 23456,
"handling_cost": 1.8,
"area_handling_cost": 2.5,
"machining_cost": 1.5,
"area_machining_cost": 1.95,
"assembly_cost": 2.2,
"area_assembly_cost": 3.2,
"unit_cost": 0
}
Successful Response
{
"data": {
"id": 709,
"image_id": 2283,
"suffix_id": 28,
"name": "Cove 25",
"item_code": null,
"filter_name": "Polytec Vinyl Style6",
"suffix_name": "Style6",
"handling_cost": 1.8,
"area_handling_cost": 2.5,
"machining_cost": 1.5,
"area_machining_cost": 1.95,
"unit_cost": 0,
"assembly_cost": 2.2,
"area_assembly_cost": 3.2,
"is_outsourced": true,
"is_advanced": false,
"is_default_edge_type": false,
"is_default_edge_type_locked": false,
"default_brand_id": null,
"default_material_id": null,
"default_finish": null,
"minimum_width": 150,
"maximum_width": null,
"minimum_height": null,
"maximum_height": null,
"minimum_drawer_height": null,
"minimum_border_width_top": null,
"minimum_border_width_bottom": null,
"minimum_border_width_left": null,
"minimum_border_width_right": null,
"default_border_width_top": null,
"default_border_width_bottom": null,
"default_border_width_left": null,
"default_border_width_right": null,
"minimum_distance_top_bottom": null,
"minimum_distance_left_right": null,
"minimum_rails_horizontal_height": null,
"maximum_rails_horizontal_height": null,
"minimum_rails_vertical_width": null,
"maximum_rails_vertical_width": null,
"default_rails_horizontal_height": null,
"default_rails_vertical_width": null,
"default_edge_finish_top": 1,
"default_edge_finish_bottom": 1,
"default_edge_finish_left": 1,
"default_edge_finish_right": 1,
"default_edge_finish_join": 1,
"is_default_edge_finish": true,
"is_locked_edge_finish": false,
"image": {
"id": 2283,
"name": "Polytec Style 6 - Cove25.jpg"
},
"is_hidden": true,
"defaults": {
"area_handling_cost": 3,
"handling_cost": 8,
"machining_cost": 0,
"area_machining_cost": 0,
"assembly_cost": 3.3,
"area_assembly_cost": 3.3,
"unit_cost": 0
}
},
"success": 1
}