Skip to main content
PUT
/
skus
/
{id}
/
bom
Replace the BOM for a SKU
curl --request PUT \
  --url https://api.autoprintfarm.com/public/v1/skus/{id}/bom \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "children": [],
  "inventory": []
}
'
{
  "success": true,
  "data": {
    "sku_id": "<string>",
    "is_composite": true,
    "available_to_build": 123,
    "children": [
      {
        "child_sku_id": "<string>",
        "quantity_required": 123,
        "child_sku": "<string>",
        "child_color": "<string>",
        "child_is_composite": true,
        "child_ready_stock": 123
      }
    ],
    "inventory": [
      {
        "inventory_item_id": "<string>",
        "quantity_required": 123,
        "item_name": "<string>",
        "remaining": 123,
        "unit": "<string>"
      }
    ]
  }
}

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
children
object[]
inventory
object[]

Response

BOM replaced

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