PATCH /items/batch
Apply the same changes to multiple items. Properties not included in the request are left unchanged.
Use existing Product group IDs and fraction units compatible with every selected Item. Unlike PATCH /items/:id, this batch handler applies these fields directly without checking Product group existence or vessel compatibility for each Item.
Request properties
ids: Array of item IDs to update.category: Product group ID to set for all selected Items. (optional)account_code: Account code to set for all selected items. Sendnullto remove it. (optional)count_fractions: Fraction counting unit to set for all selected items. Sendnullto remove it. See GET /items/:id for possible values. (optional)
Status codes
200on success400on invalid request404if a selected Item does not exist
Response properties
items: Array of the updated Item objects. See GET /items/:id for their properties.
Example request
{
"ids": ["itm_oh0IyIjqvd", "itm_xAWy4N9VCg"],
"category": "cat_KaNDv51Gh0"
}