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: