Bulk-upsert stock levels
Sets stock levels for many (variant, location) pairs at once — what a warehouse or ERP feed posts on a schedule.
Each row names its variant and stock location by Spree id
(variant_id, stock_location_id).
A row carries either count_on_hand — the absolute level the external
system reports — or adjustment, a relative change for feeds that
report movements instead. Every change is written as a stock movement,
so a merchant can still see why a figure moved.
The response carries stock_level_count: how many rows moved a shelf.
Required scope: write_stock (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Body
Send an empty list to change nothing.
Response
stock levels updated

