Skip to main content
PATCH
/
skus
/
{id}
Update a SKU
curl --request PATCH \
  --url https://api.autoprintfarm.com/public/v1/skus/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sku": "<string>",
  "color": "<string>",
  "hex_code": "<string>",
  "low_stock_threshold": 1,
  "is_active": true
}
'
{
  "success": true,
  "data": {
    "id": "<string>",
    "product_id": "<string>",
    "sku": "<string>",
    "color": "<string>",
    "filament_type": "<string>",
    "hex_code": "<string>",
    "quantity": 123,
    "stock_level": 123,
    "low_stock_threshold": 123,
    "is_active": true,
    "is_composite": true,
    "created_at": "<string>",
    "updated_at": "<string>",
    "finished_goods_stock": 123
  }
}

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
sku
string
color
string
hex_code
string | null
low_stock_threshold
integer
Required range: x >= 0
is_active
boolean

Response

SKU updated

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