Skip to main content
PATCH
/
inventory
/
{id}
Update finished-good metadata
curl --request PATCH \
  --url https://api.autoprintfarm.com/public/v1/inventory/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "image_url": "<string>",
  "is_active": true
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "product_sku_id": "<string>",
    "sku": "<string>",
    "color": "<string>",
    "material": "<string>",
    "ready_stock": 123,
    "low_stock_threshold": 123,
    "status": "<string>",
    "image_url": "<string>",
    "is_active": true,
    "created_at": "<string>",
    "updated_at": "<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

Finished-good row id.

Body

application/json
image_url
string<uri> | null

Public image URL; pass null to clear.

assembly_status
enum<string>

Internal assembly lifecycle stage for composite kits. printed = parts on hand, not yet assembled; needs_assembly = waiting to be built; assembled = ready to ship.

Available options:
printed,
needs_assembly,
assembled
is_active
boolean

Soft-delete flag. Inactive rows are hidden from alerts and stats but kept for historical reference.

Response

Item updated

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