Skip to content
BolderBolder API
Esc
navigateopen⌘Jpreview

Batch update variants

Updates multiple existing variants in a single request (does not create new variants). Each entry in batch must include id (numeric variant ID or SKU) to match an existing variant; unmatched IDs are silently skipped. Stock fields use available_units/total_units (units is deprecated but still accepted).

POST/products/{product_id}/variants/updaters
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
product_idstringrequired
Query parameters
shop_idintegerrequired
Request body
requiredapplication/json
batchobject[]required
Show properties
Array of object
idstringrequired
Existing variant ID or SKU
titlestring
Accepted (unlike the standalone update endpoint, which ignores it)
skustring
regular_priceinteger
sale_priceinteger
statusstring
Allowed:visiblehidden
stocksobject[]
Show properties
Array of object
location_idinteger
available_unitsinteger
total_unitsinteger
Responses
201Variants processed
_embeddedobject
Show properties
valid_itemsobject[]
Show properties
Array of object
idinteger
titlestring
invalid_itemsobject[]
Show properties
Array of object
idinteger
titlestring
Request
curl -X POST "https://api.onbolder.com/v2/products/string/variants/updaters?shop_id=0" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "batch": [
    {
      "id": "201",
      "title": "Small",
      "regular_price": 7999
    },
    {
      "id": "202",
      "title": "Large",
      "regular_price": 8999
    }
  ]
}'
Response
{
  "_embedded": {
    "valid_items": [
      {
        "id": 0,
        "title": "string"
      }
    ],
    "invalid_items": [
      {
        "id": 0,
        "title": "string"
      }
    ]
  }
}