The BOM Website Item object
Attributes
Unique identifier for the object.
{
"id": "b-o-m-website-item_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"qty": 0,
"website_image": "website_image_example"
} /api/manufacturing/b-o-m-website-item?parent_id={id} List bom website items by parent
Returns all bom website items belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of bom website item objects belonging to the parent.
curl https://api.overplane.dev/api/manufacturing/b-o-m-website-item?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "b-o-m-website-item_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"qty": 0,
"website_image": "website_image_example"
}
],
"has_more": false,
"total": 1
} /api/manufacturing/b-o-m-website-item Create a bom website item
Creates a new bom website item object.
Body parameters
Returns
Returns the newly created bom website item object if the call succeeded.
curl https://api.overplane.dev/api/manufacturing/b-o-m-website-item \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "b-o-m-website-item_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"qty": 0,
"website_image": "website_image_example"
} /api/manufacturing/b-o-m-website-item/{id} Update a bom website item
Updates the specified bom website item by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the bom website item to update.
Body parameters
Returns
Returns the updated bom website item object.
curl https://api.overplane.dev/api/manufacturing/b-o-m-website-item/b-o-m-website-item_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "b-o-m-website-item_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"qty": 0,
"website_image": "website_image_example"
} /api/manufacturing/b-o-m-website-item/{id} Delete a bom website item
Permanently deletes a bom website item. This cannot be undone.
Path parameters
The identifier of the bom website item to delete.
Returns
Returns a confirmation that the bom website item has been deleted.
curl https://api.overplane.dev/api/manufacturing/b-o-m-website-item/b-o-m-website-item_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "b-o-m-website-item_abc123",
"deleted": true
} /api/manufacturing/b-o-m-website-item/reorder Reorder bom website items
Updates the sort order of bom website items within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/manufacturing/b-o-m-website-item/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "b-o-m-website-item_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"item_code": "item_code_example",
"item_name": "item_name_example",
"description": "description_example",
"qty": 0,
"website_image": "website_image_example"
}