Menu
Update products/{productSku}/stockItems/{itemId}
Update products/{productSku}/stockItems/{itemId}
PUT
/V1/products/{productSku}/stockItems/{itemId}Use it in a workflow
- Add a step and choose the Adobe Commerce connector.
- Pick the Update products/{productSku}/stockItems/{itemId} action (under Products).
- Fill in the fields below, then reference the result from later steps as
{{updateProductsProductskuStockitemsItemid.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"stockItem": {
"qty": 0,
"is_in_stock": false,
"is_qty_decimal": false,
"show_default_notification_message": false,
"use_config_min_qty": false,
"min_qty": 0,
"use_config_min_sale_qty": 0,
"min_sale_qty": 0,
"use_config_max_sale_qty": false,
"max_sale_qty": 0,
"use_config_backorders": false,
"backorders": 0
}
}
Response
Returns 200 with a integer. Read it in later steps with {{updateProductsProductskuStockitemsItemid.response.data.<field>}}.
Need more? See the Adobe Commerce guide for connection setup and behaviour shared by every action.
Was this page helpful?