---
title: "Upsert Consume Line"
method: POST
path: "/api/v1/bom/consume-lines"
tags: ["v1", "BOM Tree"]
---

# Upsert Consume Line

`POST /api/v1/bom/consume-lines`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/bom/consume-lines`
- Auth: none declared

Plan a draw. Scope is enforced in the database, not trusted from here.

## Request body

- ConsumeLineBody: Plan that one task consumes some quantity of one part. No shop id and no project id: the node carries its own owner, and tenancy is resolved from it server-side. A caller that could name the scope could name the wrong one.
  - `task_id` integer, required
  - `bom_node_id` string, required
  - `planned_qty` number, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-09** `d9ef00c0253a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/bom/consume-lines/post.md)

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
