Updates an edge record.
The following fields are non-editable.
| Field | Description |
|---|---|
id |
Unique identifier |
brand_id |
Identifier of the brand |
material_type_id |
Identifier of the material type |
name |
Name of the edge |
image |
Image of the edge |
finish |
Edge's Finish |
thickness |
Edge's Thickness |
door_filter |
Door filter to which the edge belongs |
The following fields are editable through the update api.
| Field | Description |
|---|---|
item_code |
Code specific to the edge |
length_cost |
Length cost for the edge |
handling_cost |
Handling cost for the edge |
area_handling_cost |
Area handling cost for the edge |
application_cost |
Application cost of the edge |
is_hidden |
Hidden status of the edge |
This returns an updated Door record.
Request
curl -X PUT 'https://cabinetry.online/api/product/edges/6434' -H 'X-GC-API-KEY: xxxxxxxxxxxx'
Body
{
"item_code": "Edge-123",
"length_cost": 2,
"handling_cost": 2,
"area_handling_cost": 2,
"application_cost": 2,
"is_hidden": false
}
Successful Response
{
"data": {
"id": 6434,
"brand_id": 3,
"material_type_id": 2,
"item_code": null,
"name": "Topiary",
"image": "Polytec/Topiary.jpg",
"finish": "Venette",
"thickness": 1,
"door_filter": "Flat Panel",
"length_cost": 2,
"handling_cost": 2,
"area_handling_cost": 2,
"application_cost": 2,
"brand": {
"id": 3,
"name": "Polytec"
},
"material_type": {
"id": 2,
"name": "Melamine",
"is_vinyl": false
},
"is_hidden": false,
"defaults": {
"handling_cost": 0.5,
"length_cost": 1.72,
"area_handling_cost": 0.8,
"application_cost": 0.85
}
},
"success": 1
}