Hi Acumatica Support Team,
We are facing an issue while uploading attachments to a Bill of Material (BOM) using the Acumatica REST API.
Scenario:
We need to upload a file to the following BOM record:
-
BOM ID:
BOM000023 -
Revision:
* -
File Name:
AACOMPUT01.jpg
We are using the following API URL for uploading the attachment:
http://localhost/AcumaticaQMS26R1/entity/ABPManufacturing/25.100.001/BillOfMaterial/BOM000023/*/files/AACOMPUT01.jpg
When we execute the API request, we receive the following error:
A potentially dangerous Request.Path value was detected from the client (*)
Questions:
-
What is the correct REST API URL and HTTP method (PUT) for uploading an attachment when the BOM Revision value is
*? -
Does Acumatica support
*as a valid Revision key in the attachment upload URL? -
Can we use
%2Ainstead of*to avoid the ASP.NET request-path validation error? -
Is there any alternative supported approach for uploading attachments to a BOM with Revision
*?
Expected Result:
We want to successfully upload AACOMPUT01.jpg as an attachment to BOM BOM000023 with Revision * using the Acumatica REST API.
Please provide the recommended API URL and a working example for this upload scenario.
Thank you for your assistance.