Replace the piece counts and names configured per SKU

PUT/v1/sku-pieces
Auth: Factory API key

Request body

FieldTypeDescription
skurequiredstring·
product_namestring·
sizestring·
piecesrequiredinteger·
piece_namesstring[]·
unit_costnumber, nullable·

Response

200

Code samples

curl -X PUT "https://api.skuflo.io/v1/sku-pieces" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '[
    {
      "sku": "OTT4FT6",
      "pieces": 3,
      "product_name": "Ottoman base",
      "size": "Double",
      "piece_names": [
        "string"
      ],
      "unit_cost": 1
    }
  ]'