How to add an attachment to a purchase order via REST call
Summary:
We have PO's in status OPEN and now we want to add an URL link as an attachment to a certain document. We use a REST API for this and first make a Pending Change Order. Then we try to add the attachment, but his is resulting in:
https://fa-exbq-dev1-saasfaprod1.fa.ocs.oraclecloud.com:443/fscmRestApi/resources/11.13.18.05/draftPurchaseOrders/16008/child/attachments, status=400, reason=Bad Request}}]]></ns0:errorPath><ns0:instance><![CDATA[You can't perform this action on documents that are in OPEN status. (PO-2055153)
Content (please ensure you mask any confidential information):
We see the PO in status OPEN and we see a Pending Change Order with the status INCOMPLETE. Manually we can add the attachment, however using the API it's giving the error message.