Create manage script to change object owner
manage procedures update-procedure-owner (--auctionId=<procedure.auctionId>|--procedureId=<procedure._id>) newOwner
manage procedures update-bid-owner (--auctionId=<procedure.auctionId>|--procedureId=<procedure._id>) --bidId=<procedure.bids[]._id> newOwner
script changes procedure/bid owner and returns ownerToken
check out search scripts as reference https://gitlab.prozorro.sale/prozorro-sale/search/-/tree/master/command_ops
Edited by dmitry.mashoshin