When I run the CustomTranslatorApiSamples solution in Visual Studio to upload combofile, I get the following error but I have successfully created workspace, project with the sample code.
https://github.com/MicrosoftTranslator/CustomTranslatorApiSamples
Here is my code - uploading an Excel file as ComboFile. Debugging “result” returns “Response status code does not indicate success:400 (Bad Request)."
Also, can you elaborate what the structure of “Files” and “DocumentDetails” in the Request Body should be.



For the exception error I think your file is not a valid JSON, check the file content.
You should use [FromForm] attribute and IFormFile in your API method parameter. See this:
Or
Then you can upload the desired file in swagger.