ERROR: Polaris: Placing a request on an preexisting virtual item should not result in an error
Description
Problem
Placing a request on a virtual item where the virtual item already exists should not result in error. The ability to place a request on a preexisting virtual item without a hold or a loan is the scenario that I tested but I am fairly confident this scenario would result in error regardless. We need to be able to place a hold on an existing virtual record so, in this case perhaps best to start with an endpoint that first checks for the presence of the virtual item, and IFF present, adds a hold instead of attempting to create a new record. Alternatively, we could get the message returned and then correct the error by placing a hold on the existing. Dealers choice!
Problem
Placing a request on a virtual item where the virtual item already exists should not result in error. The ability to place a request on a preexisting virtual item without a hold or a loan is the scenario that I tested but I am fairly confident this scenario would result in error regardless. We need to be able to place a hold on an existing virtual record so, in this case perhaps best to start with an endpoint that first checks for the presence of the virtual item, and IFF present, adds a hold instead of attempting to create a new record. Alternatively, we could get the message returned and then correct the error by placing a hold on the existing. Dealers choice!
Request