Create multiple reservations
documentedCreate multiple soft reservation events.
POST /api/environment/{environmentId}/onhand/reserve/bulkInventory Visibilityno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://inventoryservice.operations365.dynamics.com/api/environment/{{$environmentId}}/onhand/reserve/bulk" \
-X POST \
-H "Api-Version: 1.0" \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '[\n {\n "id": "{{$reserve_id_0}}",\n "organizationId": "{{$organizationId}}",\n "productId": "{{$productId}}",\n "dimensionDataSource": "{{$dimensionDataSource}}",\n "dimensions": {\n "SiteId": "{{$siteId_0}}",\n "LocationId": "{{$locationId_0}}",\n "colorId": "{{$colorId_0}}",\n "sizeId": "{{$sizeId_0}}"\n },\n "quantities": {\n "{{$dimensionDataSource}}": {"inbound": {{$inbound_0}} }\n },\n "quantity": {{$qty_0}},\n "ifCheckAvailForReserv": {{$ifCheckAvailForReserv_0}}\n },\n {\n "id": "{{$reserve_id_1}}",\n "organizationId": "{{$organizationId}}",\n "productId": "{{$productId_2}}",\n "dimensionDataSource": "{{$dimensionDataSource}}",\n "dimensions": {\n "SiteId": "{{$siteId_1}}",\n "LocationId": "{{$locationId_1}}",\n "colorId": "{{$colorId_1}}",\n "sizeId": "{{$sizeId_1}}"\n },\n "quantities": {\n "{{$dimensionDataSource}}": {"inbound": {{$inbound_1}} }\n },\n "quantity": {{$qty_1}},\n "ifCheckAvailForReserv": {{$ifCheckAvailForReserv_1}}\n }\n ]'