Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MethodPathProvided permissionsRequestResponseDescriptionNotes
PUT

inventory/items

inventory.items.array.putCollection<Item>204 UPDATEDUpdate items from array


PUTinventory/holdingsinventory.holdings.array.putCollection<Holding>204 UPDATEDUpdate holdings from array

Flow details

Sequence diagram:

Drawio
bordertrue
diagramNameItems_holdings_bulk_operations
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth511
revision2


Steps:

1) Send array of items to be updated in one request with updated item.holdingsRecordIdtransfer request (it contains id of holding to which items should be moved and items ids).

2) Send GET items collection

3) Update retrieved items with new item.holdingsRecordId and send asynchronously update request for each item.

...

4) Return response to UI client.

5) Send array of holdings to be updated in one request with updated holding.instanceId.6) Send  Send transfer request (it contains id of instance to which holdings should be moved and holdings ids).

6) Update retrieved  holdings with new holding.instanceId and send asynchronously update request for each item.

...

8) Return response to UI client.


Transfer schema:

FieldTypeNote
toUUIDUnique identifier of instance/holding to which holdings/items to be moved
idsArray<UUID>Array of holding/item unique identifiers which will be moved to the new instance/holding


Business logic algorithm for mod-inventory:

...