You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood: Oracle Cloud SCM and Purchasing

Trying to add attachment to an incomplete PO using REST API, but its giving error

Hi ,

I am trying to add attachment to an incomplete PO using REST API but getting the below error.

Note: I tried to upload the attachment from front end with the same user and its working. Also Patch operation(updated description of an attachment) to the existing attachment is working. Only creation is not working. Please suggest.

Payload:

URI: https://{domain}/fscmRestApi/resources/latest/draftPurchaseOrders/{POId}/child/attachments

Method: POST

Content Type: application/vnd.oracle.adf.action+json

{
"DatatypeCode": "FILE",
"FileName": "test11.txt",
"CategoryName": "FROM_SUPPLIER",
"UploadedFileContentType": "text/plain",
"Title": "test22.txt",
"Description": "description updated",
"FileContents": "dGVzdDEx",
"ContentRepositoryFileShared": "false"
}

Error:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!