Decrement component stock
Materials
Decrement component stock
Decrements remaining_units by quantity and recomputes status. Returns the updated component row alongside a consumed summary of the movement. Responds 400 INSUFFICIENT_QUANTITY when the decrement would drop stock below zero. The assembly_completion reason is reserved for internal use and not accepted here.
POST
Decrement component stock
Authorizations
API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.
Path Parameters
Body
application/json