Skip to main content
POST
Decrement component stock

Authorizations

Authorization
string
header
required

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

id
string
required

Body

application/json
quantity
integer
required

Number of units to remove from stock

Required range: x >= 1
reason
enum<string>

Reason for the decrement. Defaults to manual_adjustment.

Available options:
manual_adjustment,
damaged,
other
notes
string

Free-form note recorded with the movement

Maximum string length: 500

Response

Consumed

success
enum<boolean>
required
Available options:
true
data
object
required