Set a Shopify product's available stock
Input
sku requiredThe variant's SKU, exactly as in the admin (admin.shopify.com/list_products shows a product's variants and their SKUs on the product page).
available requiredThe available quantity to set at the location.
store optionalThe store handle as it appears in the admin URL. Omit it to use the store the signed-in admin opens by default.
dryRun optionalRead the current quantity and report what would change, without changing anything.
Default: falselocationId optionalNumeric id of the location (from admin.shopify.com/store/<store>/settings/locations/<id>). Omit to use the location the Stock page shows by default; required when the store has several locations.
Output
sku requiredafter requiredAvailable quantity read back after the change (equal to before when nothing changed).
store requiredbefore requiredAvailable quantity before the run.
dryRun requiredchanged requiredTrue only when the quantity was changed and read back at the target.
variantId optionallocationId optionalvariantName optionallocationName optional