---
schema_version: "1"
id: d7aeedf27db445f80c68df600dcb1ee73224c0af3d876b41627184f31b29ebf0
title: Negative Allocation Amounts in PUT/PATCH /inventory_lists/{}/product_inventory_records/{} Are Disallowed
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_b2c_22_10_negative_allocation_mc.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_b2c_22_10_negative_allocation_mc.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7aafbf16ddef1a1f7eef3bae775621dad0e8fc6d46cfccc4c023a4cea53d006b
description: With the OCAPI 22.10 release, the PUT /inventory_lists/{}/product_inventory_records/{} and PATCH /inventory_lists/{}/product_inventory_records/{} resources no longer allow a negative allocation amount to be passed in. A constraint has been added to the ProductInventoryRecordAllocation.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Negative Allocation Amounts in PUT/PATCH /inventory\_lists/{}/product\_inventory\_records/{} Are Disallowed

With the OCAPI 22.10 release, the `PUT /inventory_lists/{}/product_inventory_records/{}` and `PATCH /inventory_lists/{}/product_inventory_records/{}` resources no longer allow a negative allocation amount to be passed in. A constraint has been added to the ProductInventoryRecordAllocation.

How: If you call these resources with a negative allocation amount, this error response is returned:

```
status code: 400 
"type": "PropertyConstraintViolationException" 
"message": "An error occurred while decoding the request. There's a value constraint violation of property '$.allocation.amount' in document 'product_inventory_record'."
```